mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
Update README.md
cleaner code in readme
This commit is contained in:
parent
09969b10c3
commit
425d7797a2
@ -413,11 +413,7 @@ onprem_cs = LightPHE(algorithm_name = "Paillier", precision = 19)
|
|||||||
onprem_cs.export_keys("public.txt", public=True)
|
onprem_cs.export_keys("public.txt", public=True)
|
||||||
|
|
||||||
# build cryptosystem in cloud with only public key
|
# build cryptosystem in cloud with only public key
|
||||||
cloud_cs = LightPHE(
|
cloud_cs = LightPHE(algorithm_name = "Paillier", precision = 19, key_file = "public.txt")
|
||||||
algorithm_name = "Paillier",
|
|
||||||
precision = 19,
|
|
||||||
key_file = "public.txt",
|
|
||||||
)
|
|
||||||
|
|
||||||
# find l2 normalized vector embeddings - VGG-Face already does
|
# find l2 normalized vector embeddings - VGG-Face already does
|
||||||
source_embedding = DeepFace.represent("img1.jpg")[0]["embedding"]
|
source_embedding = DeepFace.represent("img1.jpg")[0]["embedding"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user