Closed SimoneMatteo closed 6 months ago
Just tried this and seems working correctly:
Firstly, created a plain venv based on Python 3.8 Then pip-installed packages:
pip install torch torchvision opencv-python
pip install mmcv-full
pip install mmdet
pip install mmengine
pip install mmrotate
cd SODA-mmrotate
pip install -v -e .
glad to see that your question has been resolved, and from our experience, directly configuring mmcv
triggers a series of unexpected errors, and installing mmcv-full
with the command pip install mmcv-full=={version} -f https://download.openmmlab.com/mmcv/dist/cu{version}/torch{version}/index.html
works well and is recommended.
Prerequisite
Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
master branch https://github.com/open-mmlab/mmrotate
Environment
Installation perfromed through pip using the requirements.txt in the project's root.
Reproduces the problem - code sample
No python code.
Reproduces the problem - command or script
Reproduces the problem - error message
First error while executing the train script:
So, I perferomed a pip instll of mmengine.
Then got this error:
Tried to upgrade mmcv through but still error from import mmrotate.
Please, can you provide some suggestions? Seems the packages dependecies are not well handled
Additional information
pip freeze output: