update linux install error

This commit is contained in:
toto
2023-12-29 14:38:03 +08:00
parent 74dce3296d
commit 9a7cdbd756
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -98,7 +98,8 @@ try:
subpack_req = os.path.join(root_path, "requirements.txt")
check_and_install_requirements(subpack_req)
if platform.system() != "Windows" and not is_installed('mmcv_full'):
process_wrap(pip_install + ['mmcv_full'], cwd=root_path)
pass
# process_wrap(pip_install + ['mmcv_full'], cwd=root_path)
if sys.argv[0] == 'install.py':
sys.path.append('.') # for portable version
+1 -1
View File
@@ -516,7 +516,7 @@ class SimilarityPM:
root_embedding = get_face_recognition()(dict(user=Image.fromarray(np.uint8(main_image_copy))))[OutputKeys.IMG_EMBEDDING]
compare_embedding = get_face_recognition()(dict(user=Image.fromarray(np.uint8(compare_image_copy))))[OutputKeys.IMG_EMBEDDING]
score = float(np.dot(root_embedding, np.transpose(compare_embedding))[0][0])
if result_prefix is "":
if result_prefix == "":
result = str(round(score, 2))
else:
result = f"{result_prefix}_{round(score, 2)}"