From fed9cbc57cbd22e7f4a0681604bff0a1a8afe690 Mon Sep 17 00:00:00 2001 From: lizz Date: Mon, 5 Apr 2021 22:00:54 +0800 Subject: [PATCH] Revert "Remove pytorch 1.3" This reverts commit b8d65afea82a9ba9a5ee3315aa6816d21c137c91. --- .github/workflows/build.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9bd750f5..7a60d49a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: | - pip install torch==${{matrix.torch}}+cu101 torchvision==${{matrix.torchvision}}+cu101 -f https://download.pytorch.org/whl/torch_stable.html + 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