Skip to content

Commit 4212bcc

Browse files
hhaAndroidZwwWayne
authored andcommitted
drop support for pytorch 1.3.1. (open-mmlab#6589)
* drop support for pytorch 1.3.1. * update ci * update ci
1 parent 72da4cc commit 4212bcc

File tree

3 files changed

+16
-24
lines changed

3 files changed

+16
-24
lines changed

.github/workflows/build.yml

+14-22
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,23 @@ jobs:
2727
strategy:
2828
matrix:
2929
python-version: [3.7]
30-
torch: [1.3.1, 1.5.1, 1.6.0, 1.7.0, 1.8.0, 1.9.0]
30+
torch: [1.5.1, 1.6.0, 1.7.0, 1.8.0, 1.9.0]
3131
include:
32-
- torch: 1.3.1
33-
torchvision: 0.4.2
34-
mmcv: "latest+torch1.3.0+cpu"
3532
- torch: 1.5.1
3633
torchvision: 0.6.1
37-
mmcv: "latest+torch1.5.0+cpu"
34+
mmcv: 1.5.0
3835
- torch: 1.6.0
3936
torchvision: 0.7.0
40-
mmcv: "latest+torch1.6.0+cpu"
37+
mmcv: 1.6.0
4138
- torch: 1.7.0
4239
torchvision: 0.8.1
43-
mmcv: "latest+torch1.7.0+cpu"
40+
mmcv: 1.7.0
4441
- torch: 1.8.0
4542
torchvision: 0.9.0
46-
mmcv: "latest+torch1.8.0+cpu"
43+
mmcv: 1.8.0
4744
- torch: 1.9.0
4845
torchvision: 0.10.0
49-
mmcv: "latest+torch1.9.0+cpu"
46+
mmcv: 1.9.0
5047
steps:
5148
- uses: actions/checkout@v2
5249
- name: Set up Python ${{ matrix.python-version }}
@@ -60,7 +57,7 @@ jobs:
6057
run: pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
6158
- name: Install MMCV
6259
run: |
63-
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cpu/torch${{matrix.torch}}/index.html
60+
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cpu/torch${{matrix.mmcv}}/index.html
6461
python -c 'import mmcv; print(mmcv.__version__)'
6562
- name: Install unittest dependencies
6663
run: |
@@ -85,33 +82,28 @@ jobs:
8582
python-version: [3.7]
8683
torch:
8784
[
88-
1.3.1,
8985
1.5.1+cu101,
9086
1.6.0+cu101,
9187
1.7.0+cu101,
9288
1.8.0+cu101,
9389
]
9490
include:
95-
- torch: 1.3.1
96-
torch_version: torch1.3.1
97-
torchvision: 0.4.2
98-
mmcv_link: "torch1.3.0"
9991
- torch: 1.5.1+cu101
10092
torch_version: torch1.5.1
10193
torchvision: 0.6.1+cu101
102-
mmcv_link: "torch1.5.0"
94+
mmcv: 1.5.0
10395
- torch: 1.6.0+cu101
10496
torch_version: torch1.6.0
10597
torchvision: 0.7.0+cu101
106-
mmcv_link: "torch1.6.0"
98+
mmcv: 1.6.0
10799
- torch: 1.7.0+cu101
108100
torch_version: torch1.7.0
109101
torchvision: 0.8.1+cu101
110-
mmcv_link: "torch1.7.0"
102+
mmcv: 1.7.0
111103
- torch: 1.8.0+cu101
112104
torch_version: torch1.8.0
113105
torchvision: 0.9.0+cu101
114-
mmcv_link: "torch1.8.0"
106+
mmcv: 1.8.0
115107

116108
steps:
117109
- uses: actions/checkout@v2
@@ -135,7 +127,7 @@ jobs:
135127
- name: Install mmdet dependencies
136128
run: |
137129
python -V
138-
python -m pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu101/${{matrix.mmcv_link}}/index.html
130+
python -m pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu101/torch${{matrix.mmcv}}/index.html
139131
python -m pip install pycocotools
140132
python -m pip install -r requirements/tests.txt -r requirements/optional.txt
141133
python -m pip install albumentations>=0.3.2 --no-binary imgaug,albumentations
@@ -173,7 +165,7 @@ jobs:
173165
- torch: 1.9.0+cu102
174166
torch_version: torch1.9.0
175167
torchvision: 0.10.0+cu102
176-
mmcv_link: "torch1.9.0"
168+
mmcv: 1.9.0
177169

178170
steps:
179171
- uses: actions/checkout@v2
@@ -208,7 +200,7 @@ jobs:
208200
- name: Install mmdet dependencies
209201
run: |
210202
python -V
211-
python -m pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu102/${{matrix.mmcv_link}}/index.html
203+
python -m pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu102/torch${{matrix.mmcv}}/index.html
212204
python -m pip install pycocotools
213205
python -m pip install -r requirements/tests.txt -r requirements/optional.txt
214206
python -m pip install albumentations>=0.3.2 --no-binary imgaug,albumentations

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ English | [简体中文](README_zh-CN.md)
2929
MMDetection is an open source object detection toolbox based on PyTorch. It is
3030
a part of the [OpenMMLab](https://openmmlab.com/) project.
3131

32-
The master branch works with **PyTorch 1.3+**.
32+
The master branch works with **PyTorch 1.5+**.
3333

3434
<details open>
3535
<summary>Major features</summary>

README_zh-CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
MMDetection 是一个基于 PyTorch 的目标检测开源工具箱。它是 [OpenMMLab](https://openmmlab.com/) 项目的一部分。
3030

31-
主分支代码目前支持 PyTorch 1.3 以上的版本。
31+
主分支代码目前支持 PyTorch 1.5 以上的版本。
3232

3333

3434
<details open>

0 commit comments

Comments
 (0)