AttributeError: module 'yolort' has no attribute 'utils' #423
-
When I have finished build and install, and run export.py, it returns: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 19 replies
-
Install PyTorch and torchvisionAbove all, follow the official instructions to install PyTorch 1.8.0+ and torchvision 0.9.0+. Install yolortWe recommend to install yolort via pip: python3 -m pip install yolort==0.6.3 to get the latest release or
to install the development version. Notes:📝 Please try to use conda to manage your python libraries if possible. 📝 You can uninstall and reinstall 📝 And the following command will output a version message, which means that python3 -c "import yolort;print(yolort.__version__)" |
Beta Was this translation helpful? Give feedback.
-
I run python3 -c "import yolort;print(yolort.__version__)" |
Beta Was this translation helpful? Give feedback.
-
Hi @Wangwang99999 , Sorry for pointing in the wrong direction at first, this problem should be caused by the incompatibility of following writeup on some low versions of Windows system and Python. We've fixed this problem in #427 , please update with the main branch and see if the latest update can help you. Feel free to open a new ticket if you have more questions. |
Beta Was this translation helpful? Give feedback.
Hi @Wangwang99999 , Sorry for pointing in the wrong direction at first, this problem should be caused by the incompatibility of following writeup on some low versions of Windows system and Python.
https://github.com/zhiqwang/yolov5-rt-stack/blob/afe8d1009d17356723e45d26af94a38485e20d44/yolort/utils/image_utils.py#L12
We've fixed this problem in #427 , please update with the main branch and see if the latest update can help you. Feel free to open a new ticket if you have more questions.