diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b92abacafb..e3b6f45f90 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: diff --git a/docs/en/build.md b/docs/en/build.md index 12ffdc2872..0be0f137dc 100644 --- a/docs/en/build.md +++ b/docs/en/build.md @@ -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 ``` diff --git a/docs/en/get_started.md b/docs/en/get_started.md index 0218a2753c..9336a06c67 100644 --- a/docs/en/get_started.md +++ b/docs/en/get_started.md @@ -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 diff --git a/docs/zh_cn/build.md b/docs/zh_cn/build.md index 15a19c03d9..9fd283010c 100644 --- a/docs/zh_cn/build.md +++ b/docs/zh_cn/build.md @@ -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 ``` diff --git a/docs/zh_cn/get_started.md b/docs/zh_cn/get_started.md index c04d5536d2..414bc481d3 100644 --- a/docs/zh_cn/get_started.md +++ b/docs/zh_cn/get_started.md @@ -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