You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After fighting with dependency conflicts for a few days, I thought of sharing my final solution with you.
Basically, it is better to play it save and compile every program from source
setup conda env
conda create -n swin_od python=3.8
than clone the repo and cd to the directory
git clone https://github.com/SwinTransformer/Swin-Transformer-Object-Detection
cd Swin-Transformer-Object-Detection
install pytorch using pip instead of conda
most likely you will need to compile mmcv from scratch
git clone https://github.com/open-mmlab/mmcv.git
git switch 1.x # switch to the version that is required
pip install -r requirements/optional.txt
MMCV_WITH_OPS=1 pip install -e . -v
python .dev_scripts/check_installation.py # check the installation
most likely you will need to compile mmdet from scratch
clone mmdet switch to 2.x branch because 3.x branch is incompatible with this project
Thank you for documenting these steps. I struggled for hours trying to setup this repo until I discovered this. I've now got everything installed with no conflict errors and the demo notebooks are working so I am 😄
Which versions of pytorch, cuda versions did you guys use. Because I am trying with cuda 11.3 and pytorch 1.10.0 and am unable to install mmcv-full 1.3.17 and am struggling to find a solution to make it work with cuda 11.3.
MMCV_WITH_OPS=1 : The term 'MMCV_WITH_OPS=1' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:1 char:1
Hello,
After fighting with dependency conflicts for a few days, I thought of sharing my final solution with you.
Basically, it is better to play it save and compile every program from source
setup conda env
than clone the repo and cd to the directory
install pytorch using pip instead of conda
most likely you will need to compile mmcv from scratch
most likely you will need to compile mmdet from scratch
clone mmdet switch to 2.x branch because 3.x branch is incompatible with this project
verify that mmdet was installed correctly.
after that install nvidia apex as fallows:
After that there should not be any dependency conflicts or wired errors :)
The text was updated successfully, but these errors were encountered: