Closed gupta-keshav closed 4 years ago
Hi @gupta-keshav! Thanks for the PR!
classifier.py
is a helper script for visualising face recognition result on a single image. I thinks it's bad UX to process all images from directory because that's potentially a lot of images which will open a lot of windows for user. classifier.py
was written to quickly check result on a single image, not a batch of images.
Could you please explain me your concrete use-case in more detail so I can get a better sense why you would need this change?
Hey @ldulcic , It is common to test on multiple images rather one image as it is not possible to estimate how well the model performs from just a single image, moreover if not renamed images names are usually quite long and it quickly becomes cumbersome to test multiple of them. Multiple Windows can be handled by just removing the previous window before displaying the current one. If classifier.py is intended for single images maybe It is possible to add classifier_batch.py for multiple images.
Hey @gupta-keshav,
I think another script is a better solution. I just pushed util/tag_images.py
script in develop
branch.
You can run it like this:
python -m util.tag_images --input-folder path/to/input --output-folder path/to/output
Does this cover your use case?
Yes, Thank You!
this would allow it to classify all the images in a given directory, rather than selecting a single image each time