Facenet: can I use the code to compare to picture?

Created on 26 Jul 2017  路  3Comments  路  Source: davidsandberg/facenet

I found there is a file named compare.py. can I use the code to compare to picture? How?

Most helpful comment

yes you can do so.
you just need to give path to the model and image folder.
For example: in the terminal you can type (assuming from the root)
facenet-master$python classify.py pathtothemodel/model.pb pathtoimages/*jpg

Each of the image will be compared against all other images in the folder :)

Hope it might help you

All 3 comments

yes you can do so.
you just need to give path to the model and image folder.
For example: in the terminal you can type (assuming from the root)
facenet-master$python classify.py pathtothemodel/model.pb pathtoimages/*jpg

Each of the image will be compared against all other images in the folder :)

Hope it might help you

it works well, thank @surajitsaikia27

Do you guys know an efficient way to store the DNN results in a database and calculate distance only for new "incoming" pictures?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RaviRaaja picture RaviRaaja  路  3Comments

Feynman27 picture Feynman27  路  3Comments

helloyide picture helloyide  路  4Comments

Zumbalamambo picture Zumbalamambo  路  3Comments

haochange picture haochange  路  3Comments