agentmorris / MegaDetector

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

Matplotlib in postprocess_batch_results.py #77

Closed agentmorris closed 1 year ago

agentmorris commented 1 year ago

Within the api\batch_processing\postprocessing\postprocess_batch_results.py script, a call to import matplotlib was commented out and now an error occurs on Line 46.

"Traceback (most recent call last): File "c:\git\cameratraps\api\batch_processing\postprocessing\postprocess_batch_results.py", line 46, in import matplotlib.pyplot as plt ModuleNotFoundError: No module named 'matplotlib'"


Issue cloned from Microsoft/CameraTraps, original issue posted by BrentPease1 on Oct 24, 2022.

agentmorris commented 1 year ago

Closed by the OP; for posterity, this is likely an issue with matplotlib not being available in the current Python environment, rather than an issue with the commented-out line the OP referred to. matplotlib is included in our Conda environment files, but if you're rolling your own environment, "pip install matplotlib" will likely fix this issue.

Glad the OP (presumably) found a solution!


(Comment originally posted by agentmorris)