From fe45b241c559a2689e836abbece715baa2912cfe Mon Sep 17 00:00:00 2001 From: Wenwei Zhang <40779233+ZwwWayne@users.noreply.github.com> Date: Thu, 19 Nov 2020 00:00:12 +0800 Subject: [PATCH] Do not install mmcv through requirements (#90) * Delete the mmcv requirement to support mmcv-full installed environment * install mmcv in CI * fix mmcv version error Co-authored-by: Xinran --- .github/workflows/build.yml | 4 ++++ requirements/runtime.txt | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7162efca6..3a383ec28 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,6 +56,10 @@ jobs: if: ${{matrix.torchvision < 0.5}} - name: Install PyTorch run: pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html + - name: Install MMCV + run: | + pip install mmcv-full==latest+torch${{matrix.torch}} -f https://openmmlab.oss-accelerate.aliyuncs.com/mmcv/dist/index.html + python -c 'import mmcv; print(mmcv.__version__)' - name: Install mmcls dependencies run: | pip install -r requirements.txt diff --git a/requirements/runtime.txt b/requirements/runtime.txt index 451637f23..db5d81e01 100644 --- a/requirements/runtime.txt +++ b/requirements/runtime.txt @@ -1,3 +1,2 @@ matplotlib -mmcv>=1.1.4 numpy