pooya-mohammadi / yolov5-gradcam

Visualizing Yolov5's layers using GradCam
MIT License
290 stars 47 forks source link

Unable to import name 'Box' from 'deep_utils' #31

Open MadanMl opened 1 year ago

MadanMl commented 1 year ago

Even with a trained custom model of version yolov5-v6.1 I am not able to resolve the error. Could you please provide details of your python env and other requirements? Thanks

MadanMl commented 1 year ago

I was able to solve the issue by altering the ".....site-packages\deep_utils\utils\box_util__init__.py" file and uncommenting the "from .boxes import Box, Point" line

SurimJang commented 1 year ago

Thanks to @MadanMl , I can solve the same problem. Colab users can navigate to the parent directory of '/content' and find the files mentioned via '/usr/local/lib/python3.9/dist-packages/..'

dapenglang commented 1 year ago

Thanks to @MadanMl and @SurimJang ,If you encounter such an error in the virtual environment, locate the file in the virtual environment. Mine is: /lib/python3.9/site-packages/deep_utils/utils/box_utils/init.py uncommenting the "from .boxes import Box, Point" line