agentmorris / MegaDetector

MegaDetector is an AI model that helps conservation folks spend less time doing boring things with camera trap images.
MIT License
116 stars 24 forks source link

Question regarding the number of output images #67

Closed agentmorris closed 1 year ago

agentmorris commented 1 year ago

Hello, there is something that I find to be a bit strange (I don't know if there is something that I am missing) and I thought maybe you could help me understand problem.

When running MD on a folder (either version 5 or version 4), it seems as if not all images in the folder are being analyzed. For example, A folder with 2200 images was inserted to Mega detector (batch processing). The total number of images in the output directories (animal_detection, person, person + animal, non detection etc.) is 450 IN TOTAL. Does mega detector analyzing all images and doesn't output all of them? Should I run it again on images that were not in any of the output directories?

Please note - the json file contains all image files (all 2200 images)

Cheers,


Issue cloned from Microsoft/CameraTraps, original issue posted by barlavi1 on Jul 12, 2022.

agentmorris commented 1 year ago

The OP contacted us by email as well, closing as a duplicate. Will re-open to comment if there is a bug here.


(Comment originally posted by agentmorris)

agentmorris commented 1 year ago

FYI there was not a bug here, we suggested that separate_detections_into_folders.py would probably be a better fit for what the OP is trying to achieve, and also pointed out the num_images_to_sample option to postprocess_batch_results.py for the (rare) case that a user wants to use postprocess_batch_results to render images for a complete batch.

All is well now!


(Comment originally posted by agentmorris)