update mmcv install (#149)

This commit is contained in:
RunningLeon 2022-02-11 20:03:00 +08:00 committed by GitHub
parent af13086466
commit 3eff20d2ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 9 deletions

View File

@ -26,8 +26,10 @@ jobs:
mmcv: [1.4.0]
include:
- torch: 1.8.0
torch_version: torch1.8
torchvision: 0.9.0
- torch: 1.9.0
torch_version: torch1.9
torchvision: 0.10.0
steps:
- uses: actions/checkout@v2
@ -39,7 +41,7 @@ jobs:
run: pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Install MMCV
run: |
pip install mmcv-full==${{matrix.mmcv}} -f https://download.openmmlab.com/mmcv/dist/cpu/torch${{matrix.torch}}/index.html
pip install mmcv-full==${{matrix.mmcv}} -f https://download.openmmlab.com/mmcv/dist/cpu/${{matrix.torch_version}}/index.html
python -c 'import mmcv; print(mmcv.__version__)'
- name: Install unittest dependencies
run: |
@ -66,7 +68,7 @@ jobs:
mmcv: [1.4.0]
include:
- torch: 1.9.0+cu102
torch_version: torch1.9.0
torch_version: torch1.9
torchvision: 0.10.0+cu102
steps:
- uses: actions/checkout@v2
@ -109,7 +111,7 @@ jobs:
mmcv: [1.4.0]
include:
- torch: 1.8.0+cu111
torch_version: torch1.8.0
torch_version: torch1.8
torchvision: 0.9.0+cu111
steps:

View File

@ -74,7 +74,7 @@ We provide building methods for both physical and virtual machines. For virtual
```bash
export cu_version=cu111 # cuda 11.1
export torch_version=torch1.8.0
export torch_version=torch1.8
pip install mmcv-full==1.4.0 -f https://download.openmmlab.com/mmcv/dist/${cu_version}/${torch_version}/index.html
```

View File

@ -103,8 +103,8 @@ conda activate openmmlab
conda install pytorch==1.8.0 torchvision==0.9.0 cudatoolkit=10.2 -c pytorch -y
# install the latest mmcv
pip install mmcv-full==1.4.0 -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/index.html
# install mmcv
pip install mmcv-full==1.4.0 -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.8/index.html
# install mmdetection
git clone https://github.com/open-mmlab/mmdetection.git

View File

@ -74,7 +74,7 @@
```bash
export cu_version=cu111 # cuda 11.1
export torch_version=torch1.8.0
export torch_version=torch1.8
pip install mmcv-full==1.4.0 -f https://download.openmmlab.com/mmcv/dist/${cu_version}/${torch_version}/index.html
```

View File

@ -103,8 +103,8 @@ conda activate openmmlab
conda install pytorch==1.8.0 torchvision==0.9.0 cudatoolkit=10.2 -c pytorch -y
# 安装最新的mmcv
pip install mmcv-full==1.4.0 -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/index.html
# 安装 mmcv
pip install mmcv-full==1.4.0 -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.8/index.html
# 安装mmdetection
git clone https://github.com/open-mmlab/mmdetection.git