mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
update mmcv install (#149)
This commit is contained in:
parent
af13086466
commit
3eff20d2ac
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -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:
|
||||
|
@ -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
|
||||
```
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
```
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user