Relative Import Issues
Search before asking
- [x] I have searched the Pytorch-Wildlife issues and found no similar bug report.
Bug
When using the relative import of the PytorchWildlife model.py modules and Ultralyrics model.py modules, the relative import on the PytorchWildlife causes this error.
File "/home/usr/anaconda3/envs/animl-gpu-3.8/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/usr/anaconda3/envs/animl-gpu-3.8/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/usr/animl-py/src/animl/main.py", line 29, in
Environment
No response
Minimal Reproducible Example
No response
Additional
No response
Are you willing to submit a PR?
- [ ] Yes I'd like to help by submitting a PR!
Hi @mamani828, we have attempted to replicate the issue but PytorchWildlife imports without any issues in our end. However, we suggest trying the following command to ensure you're using a compatible version of YOLOv5:
pip install yolov5==6.2
If this does not resolve the issue, could you please provide us with a detailed step-by-step process of your installation? This will help us to replicate the scenario more accurately and assist you better. Thank you!
Had similar issues to the original post. Re-installing YOLOv5 to 6.2 resolved the issue. @danielaruizl1 Thanks for the instruction.
We will be closing this issue since there are no comments for the past 3 months. If the solution suggested by @danielaruizl1 does not work, feel free to re-open this issue!