mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 03:55:21 +00:00
Update README.md
typo in phe
This commit is contained in:
parent
d16e2f083e
commit
f269ee8be7
@ -438,7 +438,7 @@ def cloud(encrypted_source_embedding):
|
|||||||
|
|
||||||
def verify(encrypted_cosine_similarity, threshold = 0.68):
|
def verify(encrypted_cosine_similarity, threshold = 0.68):
|
||||||
# restore the built cryptosystem on-prem with secret key
|
# restore the built cryptosystem on-prem with secret key
|
||||||
cloud_cs = LightPHE(algorithm_name = "Paillier", precision = 19, key_file = "secret.txt")
|
onprem_cs = LightPHE(algorithm_name = "Paillier", precision = 19, key_file = "secret.txt")
|
||||||
|
|
||||||
# restore cosine similarity
|
# restore cosine similarity
|
||||||
cosine_similarity = onprem_cs.decrypt(encrypted_cosine_similarity)[0]
|
cosine_similarity = onprem_cs.decrypt(encrypted_cosine_similarity)[0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user