update linux install error
This commit is contained in:
+2
-1
@@ -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
@@ -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)}"
|
||||
|
||||
Reference in New Issue
Block a user