Revert "Remove pytorch 1.3"

This reverts commit b8d65afea82a9ba9a5ee3315aa6816d21c137c91.
pull/2/head
lizz 2021-04-05 22:00:54 +08:00
parent 54c6ea8b69
commit fed9cbc57c
1 changed files with 12 additions and 3 deletions

View File

@ -32,8 +32,10 @@ jobs:
strategy:
matrix:
python-version: [3.7]
torch: [1.5.0, 1.6.0, 1.7.0]
torch: [1.3.0, 1.5.0, 1.6.0, 1.7.0]
include:
- torch: 1.3.0
torchvision: 0.4.1
- torch: 1.5.0
torchvision: 0.6.0
- torch: 1.6.0
@ -77,8 +79,10 @@ jobs:
strategy:
matrix:
python-version: [3.7]
torch: [1.5.0, 1.6.0, 1.7.0]
torch: [1.3.0, 1.5.0, 1.6.0, 1.7.0]
include:
- torch: 1.3.0
torchvision: 0.4.1
- torch: 1.5.0
torchvision: 0.6.0
- torch: 1.6.0
@ -118,7 +122,12 @@ jobs:
if: ${{matrix.torchvision < 0.5}}
- name: Install PyTorch
run: |
if [ ${{matrix.torch}} == '1.3.0' ]
then
pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html
else
pip install torch==${{matrix.torch}}+cu101 torchvision==${{matrix.torchvision}}+cu101 -f https://download.pytorch.org/whl/torch_stable.html
fi
- name: Install MMCV
run: pip install mmcv-full==1.3.0 -f https://download.openmmlab.com/mmcv/dist/cu101/torch${{matrix.torch}}/index.html
- name: Install MMDet