agentmorris / MegaDetector

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

AssertionError: detector file megadetector/md_v5a.0.0.pt does not exist #69

Closed agentmorris closed 1 year ago

agentmorris commented 1 year ago

I'm trying to run megadetector on an online linux based docker container with GPU access, but for some reason I am unable to open the "mdv5a.0.0.pt", despite me uploading it to my virtual GUI file explorer. Here's an example of what I'm running into.

Here's what I run: (cameratraps-detector) jovyan@a18fbc2ea:~/work/~git/cameratraps$ python detection/run_detector.py "megadetector/md_v5a.0.0.pt" --image_file "test1.jpg" --threshold 0.2

Here's what I get back:

Traceback (most recent call last): File "detection/run_detector.py", line 460, in main() File "detection/run_detector.py", line 433, in main assert os.path.exists(args.detector_file), 'detector file {} does not exist'.format(args.detector_file) AssertionError: detector file megadetector/md_v5a.0.0.pt does not exist

Capture

Issue cloned from Microsoft/CameraTraps, original issue posted by dvelasco3 on Jul 14, 2022.

agentmorris commented 1 year ago

I was able to fix this by typing "md_v5a.0.0.pt" instead of megadetector/md_v5a.0.0.pt"


(Comment originally posted by dvelasco3)