ChenhongyiYang / PPAL

[CVPR 2024] Plug and Play Active Learning for Object Detection
Apache License 2.0
85 stars 10 forks source link

Version issues of mmcv and mmdet #19

Closed wzhuo2022 closed 2 months ago

wzhuo2022 commented 2 months ago

I noticed that the mmcv requirement in the project file is >=1.3.17, \<1.5.0. When I installed mmcv according to the official website, all versions were >=2.0.0. I searched the historical versions and could only find versions >=2.0.0. Can you provide any help? How can I find the matching version?

wzhuo2022 commented 2 months ago

Create a conda environment

$ conda create --name openmmlab python=3.8 -y
$ conda activate openmmlab
Install pytorch

Check the version requirements of MMCV in ./mmdet/__init__.py, and then go to [Install MMCV - MMCV 1.5.0 Documentation] (https://mmcv.readthedocs.io/zh-cn/v1.5.0/get_started/installation.html) here to check the comparison between the corresponding version and pytorch(This link points to mmcv=1.5, and you can also select a different version in the bottom left corner of the page), Find the version of PyTorch that suits you, and then go to the official website of PyTorch to download it.

$ conda install pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cudatoolkit=11.3 -c pytorch
Install the MMCV
$ pip install mmcv-full==1.5.0 -f https://download.openmmlab.com/mmcv/dist/cu113/torch1.11.0/index.html
Compile mmdet
$ cd PPAL
$ python setup.py install
Metaphysical operations
$ python setup.py install
$ pip install yapf==0.40.1
$ pip uninstall numpy 
$ python -m pip install numpy==1.23.1