agentmorris / MegaDetector

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

eliminating repeated detection #62

Closed agentmorris closed 1 year ago

agentmorris commented 1 year ago

Hi Dan, thank you for your quick reply! (Issue #290 )

after running the pipeline:

Looking at the json file, it doesn't have the same fields as in the output json file of the run_detector_batch.py.

Is there a way use the postprocess_batch_results.py on the json file of the repeat detections?

Thanks


Issue cloned from Microsoft/CameraTraps, original issue posted by barlavi1 on Jun 13, 2022.

agentmorris commented 1 year ago

Sorry you're having trouble with the RDE process.

Firstly, clarifying that when you say "manually removing false positives", you should be removing detections on actual objects. I.e., from MegaDetector's perspective, you should be removing true positives, not false positives. That may be what you meant, but this is important, so clarifying. What's left in the directory when you're done with the manual step should be images with boxes on junk (rocks, sticks, etc.). The README on RDE has specific examples of what you should/shouldn't be deleting.

Regarding the .json file... are you sure you are using the file you specified as the output file in remove_repeat_detections(), rather than the "detectionIndex.json" file that is produced by find_repeat_detections()? detectionIndex.json is just an intermediate file that's used to communicate the list of detections between find_repeat_detections() and remove_repeat_detections().

If you are in fact using the output from from remove_repeat_detections(), can you:

  1. Confirm that remove_repeat_detections() runs without error, and send the command-line output?
  2. Share the resulting .json file, either here or via email to cameratraps@lila.science?

Thanks.

-Dan


(Comment originally posted by agentmorris)

agentmorris commented 1 year ago

Thank you! It worked now. Indeed, I used the wrong .json file.

thanks again


(Comment originally posted by barlavi1)

agentmorris commented 1 year ago

Great! Glad it worked. Closing this issue.


(Comment originally posted by agentmorris)