paucarre / tiefvision

End-to-end deep learning image-similarity search engine
Apache License 2.0
765 stars 186 forks source link

is it possible to match an image from an external source? #67

Open avnerbarr opened 6 years ago

avnerbarr commented 6 years ago

I've trained my dataset withe my set of images. I was wondering if it is possible to find a match using an external image from a picture I've taken with a phone camera

ICC-qi commented 6 years ago

Yes, you can use search.lua in /src/torch/11-similarity-searcher-cnn-file like this $luajit search.lua test.jpg /home/.../A -dataFolder /home/.../B A is the folder where test.jpg is located in; B is the dataset of images to be compared, -dataFolder option is added by myself.

ICC-qi commented 6 years ago

If you don't add the new option -dataFolder. The default folder of images dataset is /tiefvision/src/torch/data/encoded-images. Don't forget to move your images there.