mirror of https://github.com/open-mmlab/mmocr.git
update mmcv installation method (#323)
parent
8999c56159
commit
079a93de4e
|
@ -56,7 +56,7 @@ jobs:
|
||||||
- name: Install PyTorch
|
- name: Install PyTorch
|
||||||
run: pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
|
run: pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
|
||||||
- name: Install MMCV
|
- name: Install MMCV
|
||||||
run: pip install mmcv-full==1.3.4 -f https://download.openmmlab.com/mmcv/dist/cpu/torch${{matrix.torch}}/index.html
|
run: pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cpu/torch${{matrix.torch}}/index.html
|
||||||
- name: Install MMDet
|
- name: Install MMDet
|
||||||
run: pip install mmdet==2.11.0
|
run: pip install mmdet==2.11.0
|
||||||
- name: Install other dependencies
|
- name: Install other dependencies
|
||||||
|
@ -82,24 +82,24 @@ jobs:
|
||||||
torch: [1.5.0+cu101, 1.6.0+cu101, 1.7.0+cu101, 1.8.0+cu101]
|
torch: [1.5.0+cu101, 1.6.0+cu101, 1.7.0+cu101, 1.8.0+cu101]
|
||||||
include:
|
include:
|
||||||
- torch: 1.5.0+cu101
|
- torch: 1.5.0+cu101
|
||||||
|
torch_version: 1.5.0
|
||||||
torchvision: 0.6.0+cu101
|
torchvision: 0.6.0+cu101
|
||||||
mmcv: 1.5.0+cu101
|
|
||||||
- torch: 1.6.0+cu101
|
- torch: 1.6.0+cu101
|
||||||
|
torch_version: 1.6.0
|
||||||
torchvision: 0.7.0+cu101
|
torchvision: 0.7.0+cu101
|
||||||
mmcv: 1.6.0+cu101
|
|
||||||
- torch: 1.7.0+cu101
|
- torch: 1.7.0+cu101
|
||||||
|
torch_version: 1.7.0
|
||||||
torchvision: 0.8.1+cu101
|
torchvision: 0.8.1+cu101
|
||||||
mmcv: 1.7.0+cu101
|
|
||||||
- torch: 1.8.0+cu101
|
- torch: 1.8.0+cu101
|
||||||
|
torch_version: 1.8.0
|
||||||
torchvision: 0.9.0+cu101
|
torchvision: 0.9.0+cu101
|
||||||
mmcv: 1.8.0+cu101
|
|
||||||
- torch: 1.8.0+cu101
|
- torch: 1.8.0+cu101
|
||||||
|
torch_version: 1.8.0
|
||||||
torchvision: 0.9.0+cu101
|
torchvision: 0.9.0+cu101
|
||||||
mmcv: 1.8.0+cu101
|
|
||||||
python-version: 3.6
|
python-version: 3.6
|
||||||
- torch: 1.8.0+cu101
|
- torch: 1.8.0+cu101
|
||||||
|
torch_version: 1.8.0
|
||||||
torchvision: 0.9.0+cu101
|
torchvision: 0.9.0+cu101
|
||||||
mmcv: 1.8.0+cu101
|
|
||||||
python-version: 3.8
|
python-version: 3.8
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -138,7 +138,7 @@ jobs:
|
||||||
run: pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html
|
run: pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html
|
||||||
- name: Install mmocr dependencies
|
- name: Install mmocr dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install mmcv-full==latest+torch${{matrix.mmcv}} -f https://download.openmmlab.com/mmcv/dist/index.html --use-deprecated=legacy-resolver
|
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu101/torch${{matrix.torch_version}}/index.html
|
||||||
pip install mmdet==2.11.0
|
pip install mmdet==2.11.0
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
- name: Build and install
|
- name: Build and install
|
||||||
|
|
Loading…
Reference in New Issue