[Fix] Update the version limitation of mmcv-full and pytorch in CI. (#7133)

* Update

* Update build.yml

* Update build.yml
pull/6476/head^2
jbwang1997 3 years ago committed by GitHub
parent c9e1906f00
commit 951996c51d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      .github/workflows/build.yml
  2. 7
      docs/en/get_started.md
  3. 7
      docs/zh_cn/get_started.md

@ -37,19 +37,19 @@ jobs:
include:
- torch: 1.5.1
torchvision: 0.6.1
mmcv: 1.5.0
mmcv: 1.5
- torch: 1.6.0
torchvision: 0.7.0
mmcv: 1.6.0
mmcv: 1.6
- torch: 1.7.0
torchvision: 0.8.1
mmcv: 1.7.0
mmcv: 1.7
- torch: 1.8.0
torchvision: 0.9.0
mmcv: 1.8.0
mmcv: 1.8
- torch: 1.9.0
torchvision: 0.10.0
mmcv: 1.9.0
mmcv: 1.9
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
@ -91,19 +91,19 @@ jobs:
- torch: 1.5.1+cu101
torch_version: torch1.5.1
torchvision: 0.6.1+cu101
mmcv: 1.5.0
mmcv: 1.5
- torch: 1.6.0+cu101
torch_version: torch1.6.0
torchvision: 0.7.0+cu101
mmcv: 1.6.0
mmcv: 1.6
- torch: 1.7.0+cu101
torch_version: torch1.7.0
torchvision: 0.8.1+cu101
mmcv: 1.7.0
mmcv: 1.7
- torch: 1.8.0+cu101
torch_version: torch1.8.0
torchvision: 0.9.0+cu101
mmcv: 1.8.0
mmcv: 1.8
steps:
- uses: actions/checkout@v2
@ -165,7 +165,7 @@ jobs:
- torch: 1.9.0+cu102
torch_version: torch1.9.0
torchvision: 0.10.0+cu102
mmcv: 1.9.0
mmcv: 1.9
steps:
- uses: actions/checkout@v2

@ -107,6 +107,13 @@ Or you can still install MMDetection manually:
Optionally you can compile mmcv from source if you need to develop both mmcv and mmdet. Refer to the [guide](https://github.com/open-mmlab/mmcv#installation) for details.
mmcv-full is only compiled on PyTorch 1.x.0 because the compatibility usually holds between 1.x.0 and 1.x.1. If your PyTorch version is 1.x.1, you can install mmcv-full compiled with PyTorch 1.x.0 and it usually works well.
```
# We can ignore the micro version of PyTorch
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu110/torch1.7/index.html
```
2. Install MMDetection.
You can simply install mmdetection with the following command:

@ -115,6 +115,13 @@ MIM 能够自动地安装 OpenMMLab 的项目以及对应的依赖包。
pip install mmcv-full
```
PyTorch 在 1.x.0 和 1.x.1 之间通常是兼容的,故 mmcv-full 只提供 1.x.0 的编译包。如果你的 PyTorch 版本是 1.x.1,你可以放心地安装在 1.x.0 版本编译的 mmcv-full。
```
# 我们可以忽略 PyTorch 的小版本号
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu110/torch1.7/index.html
```
2. 安装 MMDetection:
你可以直接通过如下命令从 pip 安装使用 mmdetection:

Loading…
Cancel
Save