agentmorris / MegaDetector

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

Specifying a relative path for the output json file #137

Closed tomyamashita closed 4 months ago

tomyamashita commented 4 months ago

Hi Dan,

I recently installed this version of Megadetector on a new computer and when I tried to specify a relative path for the output json file, it recognizes the file before going through the images but fails in saving the output file. Screenshot 2024-07-02 134758 Screenshot 2024-07-02 134826

It does work when you specify an absolute path.

Thanks, Tom

agentmorris commented 4 months ago

Thanks for catching this! I was able to repro this. It wasn't an issue with all relative paths, it was an issue with a relative path with no folder component (e.g. "blah/detections.json" would have been fine, but "detections.json" was not). Fixed now, so I'm closing the issue, but please verify and let me know if you aren't able to repro the fix.

Thanks for finding and reporting!