Skip to content

Commit

Permalink
[Fix] Update the version limitation of mmcv-full and pytorch in CI. (#…
Browse files Browse the repository at this point in the history
…7133)

* Update

* Update build.yml

* Update build.yml
  • Loading branch information
jbwang1997 authored Feb 9, 2022
1 parent c9e1906 commit 951996c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions docs/en/get_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 7 additions & 0 deletions docs/zh_cn/get_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 951996c

Please sign in to comment.