Skip to content

Commit 1c836be

Browse files
committed
Merge branch 'dev-1.x' of github.com:open-mmlab/mmsegmentation into 1.x
2 parents 721c720 + 18ee41e commit 1c836be

File tree

65 files changed

+4410
-408
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+4410
-408
lines changed

.circleci/test.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ jobs:
6161
command: |
6262
pip install git+https://github.com/open-mmlab/mmengine.git@main
6363
pip install -U openmim
64-
mim install 'mmcv>=2.0.0rc3'
64+
mim install 'mmcv==2.0.0rc3'
6565
pip install git+https://github.com/open-mmlab/[email protected]
66-
pip install git+https://github.com/open-mmlab/[email protected]
66+
mim install 'mmdet==3.0.0rc5'
6767
pip install -r requirements/tests.txt -r requirements/optional.txt
6868
- run:
6969
name: Build and install
@@ -97,7 +97,6 @@ jobs:
9797
command: |
9898
git clone -b main --depth 1 https://github.com/open-mmlab/mmengine.git /home/circleci/mmengine
9999
git clone -b dev-1.x --depth 1 https://github.com/open-mmlab/mmclassification.git /home/circleci/mmclassification
100-
git clone -b dev-3.x --depth 1 https://github.com/open-mmlab/mmdetection.git /home/circleci/mmdetection
101100
- run:
102101
name: Build Docker image
103102
command: |
@@ -108,9 +107,9 @@ jobs:
108107
command: |
109108
docker exec mmseg pip install -e /mmengine
110109
docker exec mmseg pip install -U openmim
111-
docker exec mmseg mim install 'mmcv>=2.0.0rc3'
110+
docker exec mmseg mim install 'mmcv==2.0.0rc3'
112111
docker exec mmseg pip install -e /mmclassification
113-
docker exec mmseg pip install -e /mmdetection
112+
docker exec mmseg mim install 'mmdet==3.0.0rc5'
114113
docker exec mmseg pip install -r requirements/tests.txt -r requirements/optional.txt
115114
- run:
116115
name: Build and install
@@ -149,13 +148,14 @@ workflows:
149148
name: minimum_version_cpu
150149
torch: 1.6.0
151150
torchvision: 0.7.0
152-
python: 3.6.9 # The lowest python 3.6.x version available on CircleCI images
151+
python: "3.7"
153152
requires:
154153
- lint
155154
- build_cpu:
156155
name: maximum_version_cpu
157-
torch: 1.13.0
158-
torchvision: 0.14.0
156+
# TODO: Fix torch 1.13 forward crush
157+
torch: 1.12.0
158+
torchvision: 0.13.0
159159
python: 3.9.0
160160
requires:
161161
- minimum_version_cpu
@@ -187,4 +187,3 @@ workflows:
187187
only:
188188
- dev-1.x
189189
- 1.x
190-
- master

.github/workflows/merge_stage_test.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-18.04
2323
strategy:
2424
matrix:
25-
python-version: [3.6, 3.8, 3.9]
25+
python-version: [3.8, 3.9]
2626
torch: [1.8.1]
2727
include:
2828
- torch: 1.8.1
@@ -44,9 +44,9 @@ jobs:
4444
python -V
4545
pip install -U openmim
4646
pip install git+https://github.com/open-mmlab/mmengine.git
47-
mim install 'mmcv>=2.0.0rc3'
47+
mim install 'mmcv==2.0.0rc3'
4848
pip install git+https://github.com/open-mmlab/[email protected]
49-
pip install git+https://github.com/open-mmlab/[email protected]
49+
mim install 'mmdet==3.0.0rc5'
5050
- name: Install unittest dependencies
5151
run: pip install -r requirements/tests.txt -r requirements/optional.txt
5252
- name: Build and install
@@ -100,9 +100,9 @@ jobs:
100100
python -V
101101
pip install -U openmim
102102
pip install git+https://github.com/open-mmlab/mmengine.git
103-
mim install 'mmcv>=2.0.0rc3'
103+
mim install 'mmcv==2.0.0rc3'
104104
pip install git+https://github.com/open-mmlab/[email protected]
105-
pip install git+https://github.com/open-mmlab/[email protected]
105+
mim install 'mmdet==3.0.0rc5'
106106
- name: Install unittest dependencies
107107
run: pip install -r requirements/tests.txt -r requirements/optional.txt
108108
- name: Build and install
@@ -166,9 +166,9 @@ jobs:
166166
python -V
167167
pip install -U openmim
168168
pip install git+https://github.com/open-mmlab/mmengine.git
169-
mim install 'mmcv>=2.0.0rc3'
169+
mim install 'mmcv==2.0.0rc3'
170170
pip install git+https://github.com/open-mmlab/[email protected]
171-
pip install git+https://github.com/open-mmlab/[email protected]
171+
mim install 'mmdet==3.0.0rc5'
172172
- name: Install unittest dependencies
173173
run: pip install -r requirements/tests.txt -r requirements/optional.txt
174174
- name: Build and install
@@ -209,9 +209,9 @@ jobs:
209209
python -V
210210
pip install -U openmim
211211
pip install git+https://github.com/open-mmlab/mmengine.git
212-
mim install 'mmcv>=2.0.0rc3'
212+
mim install 'mmcv==2.0.0rc3'
213213
pip install git+https://github.com/open-mmlab/[email protected]
214-
pip install git+https://github.com/open-mmlab/[email protected]
214+
mim install 'mmdet==3.0.0rc5'
215215
- name: Install unittest dependencies
216216
run: pip install -r requirements/tests.txt -r requirements/optional.txt
217217
- name: Build and install
@@ -244,9 +244,9 @@ jobs:
244244
python -V
245245
pip install -U openmim
246246
pip install git+https://github.com/open-mmlab/mmengine.git
247-
mim install 'mmcv>=2.0.0rc3'
247+
mim install 'mmcv==2.0.0rc3'
248248
pip install git+https://github.com/open-mmlab/[email protected]
249-
pip install git+https://github.com/open-mmlab/[email protected]
249+
mim install 'mmdet==3.0.0rc5'
250250
- name: Install unittest dependencies
251251
run: pip install -r requirements/tests.txt -r requirements/optional.txt
252252
- name: Build and install

.github/workflows/pr_stage_test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ jobs:
4444
run: |
4545
pip install -U openmim
4646
pip install git+https://github.com/open-mmlab/mmengine.git
47-
mim install 'mmcv>=2.0.0rc3'
47+
mim install 'mmcv==2.0.0rc3'
4848
pip install git+https://github.com/open-mmlab/[email protected]
49-
pip install git+https://github.com/open-mmlab/[email protected]
49+
mim install 'mmdet==3.0.0rc5'
5050
- name: Install unittest dependencies
5151
run: pip install -r requirements/tests.txt -r requirements/optional.txt
5252
- name: Build and install
@@ -100,9 +100,9 @@ jobs:
100100
python -V
101101
pip install -U openmim
102102
pip install git+https://github.com/open-mmlab/mmengine.git
103-
mim install 'mmcv>=2.0.0rc3'
103+
mim install 'mmcv==2.0.0rc3'
104104
pip install git+https://github.com/open-mmlab/[email protected]
105-
pip install git+https://github.com/open-mmlab/[email protected]
105+
mim install 'mmdet==3.0.0rc5'
106106
- name: Install unittest dependencies
107107
run: pip install -r requirements/tests.txt -r requirements/optional.txt
108108
- name: Build and install
@@ -135,9 +135,9 @@ jobs:
135135
python -V
136136
pip install -U openmim
137137
pip install git+https://github.com/open-mmlab/mmengine.git
138-
mim install 'mmcv>=2.0.0rc3'
138+
mim install 'mmcv==2.0.0rc3'
139139
pip install git+https://github.com/open-mmlab/[email protected]
140-
pip install git+https://github.com/open-mmlab/[email protected]
140+
mim install 'mmdet==3.0.0rc5'
141141
- name: Install unittest dependencies
142142
run: pip install -r requirements/tests.txt -r requirements/optional.txt
143143
- name: Build and install

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ repos:
33
rev: 5.0.4
44
hooks:
55
- id: flake8
6-
- repo: https://github.com/PyCQA/isort
7-
rev: 5.10.1
6+
- repo: https://github.com/zhouzaida/isort
7+
rev: 5.12.1
88
hooks:
99
- id: isort
1010
- repo: https://github.com/pre-commit/mirrors-yapf

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ The 1.x branch works with **PyTorch 1.6+**.
6262

6363
## What's New
6464

65-
v1.0.0rc3 was released in 31/12/2022.
65+
v1.0.0rc4 was released on 30/01/2023.
6666
Please refer to [changelog.md](docs/en/notes/changelog.md) for details and release history.
6767

68-
- Support test time augmentation ([#2184](https://github.com/open-mmlab/mmsegmentation/pull/2184))
69-
- Add 'Projects/' folder and the first example project ([#2412](https://github.com/open-mmlab/mmsegmentation/pull/2412))
68+
- Support ISNet (ICCV'2021) in projects ([#2400](https://github.com/open-mmlab/mmsegmentation/pull/2400))
69+
- Support HSSN (CVPR'2022) in projects ([#2444](https://github.com/open-mmlab/mmsegmentation/pull/2444))
7070

7171
## Installation
7272

README_zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ MMSegmentation 是一个基于 PyTorch 的语义分割开源工具箱。它是 O
6161

6262
## 更新日志
6363

64-
最新版本 v1.0.0rc32022.12.31 发布。
64+
最新版本 v1.0.0rc42023.01.30 发布。
6565
如果想了解更多版本更新细节和历史信息,请阅读[更新日志](docs/en/notes/changelog.md)
6666

6767
## 安装

configs/_base_/datasets/synapse.py

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
dataset_type = 'SynapseDataset'
2+
data_root = 'data/synapse/'
3+
img_scale = (224, 224)
4+
train_pipeline = [
5+
dict(type='LoadImageFromFile'),
6+
dict(type='LoadAnnotations'),
7+
dict(type='Resize', scale=img_scale, keep_ratio=True),
8+
dict(type='RandomRotFlip', rotate_prob=0.5, flip_prob=0.5, degree=20),
9+
dict(type='PackSegInputs')
10+
]
11+
test_pipeline = [
12+
dict(type='LoadImageFromFile'),
13+
dict(type='Resize', scale=img_scale, keep_ratio=True),
14+
dict(type='LoadAnnotations'),
15+
dict(type='PackSegInputs')
16+
]
17+
train_dataloader = dict(
18+
batch_size=6,
19+
num_workers=2,
20+
persistent_workers=True,
21+
sampler=dict(type='InfiniteSampler', shuffle=True),
22+
dataset=dict(
23+
type=dataset_type,
24+
data_root=data_root,
25+
data_prefix=dict(
26+
img_path='img_dir/train', seg_map_path='ann_dir/train'),
27+
pipeline=train_pipeline))
28+
val_dataloader = dict(
29+
batch_size=1,
30+
num_workers=4,
31+
persistent_workers=True,
32+
sampler=dict(type='DefaultSampler', shuffle=False),
33+
dataset=dict(
34+
type=dataset_type,
35+
data_root=data_root,
36+
data_prefix=dict(img_path='img_dir/val', seg_map_path='ann_dir/val'),
37+
pipeline=test_pipeline))
38+
test_dataloader = val_dataloader
39+
40+
val_evaluator = dict(type='IoUMetric', iou_metrics=['mDice'])
41+
test_evaluator = val_evaluator

docker/serve/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ARG CUDNN="8"
44
FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel
55

66
ARG MMCV="2.0.0rc3"
7-
ARG MMSEG="1.0.0rc3"
7+
ARG MMSEG="1.0.0rc4"
88

99
ENV PYTHONUNBUFFERED TRUE
1010

0 commit comments

Comments
 (0)