Skip to content

Commit e4bc52e

Browse files
authored
Merge pull request open-mmlab#2251 from MeowZheng/sync-1.x
Sync 1.x
2 parents 02d3793 + b07bb16 commit e4bc52e

File tree

9 files changed

+527
-218
lines changed

9 files changed

+527
-218
lines changed

.circleci/test.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ 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.0rc1'
64+
mim install 'mmcv>=2.0.0rc1'
6565
pip install git+https://github.com/open-mmlab/[email protected]
6666
pip install -r requirements/tests.txt -r requirements/optional.txt
6767
- run:
@@ -71,9 +71,9 @@ jobs:
7171
- run:
7272
name: Skip timm unittests and generate coverage report
7373
command: |
74-
coverage run --branch --source mmseg -m pytest tests/ --ignore tests/test_models/test_backbones/test_timm_backbone.py
75-
coverage xml
76-
coverage report -m
74+
python -m coverage run --branch --source mmseg -m pytest tests/ --ignore tests/test_models/test_backbones/test_timm_backbone.py
75+
python -m coverage xml
76+
python -m coverage report -m
7777
build_cuda:
7878
parameters:
7979
torch:
@@ -106,7 +106,7 @@ jobs:
106106
command: |
107107
docker exec mmseg pip install -e /mmengine
108108
docker exec mmseg pip install -U openmim
109-
docker exec mmseg mim install 'mmcv >= 2.0.0rc1'
109+
docker exec mmseg mim install 'mmcv>=2.0.0rc1'
110110
docker exec mmseg pip install -e /mmclassification
111111
docker exec mmseg pip install -r requirements/tests.txt -r requirements/optional.txt
112112
- run:
@@ -128,6 +128,7 @@ workflows:
128128
ignore:
129129
- dev-1.x
130130
- 1.x
131+
- master
131132
pr_stage_test:
132133
when:
133134
not:
@@ -140,6 +141,7 @@ workflows:
140141
ignore:
141142
- dev-1.x
142143
- 1.x
144+
- master
143145
- build_cpu:
144146
name: minimum_version_cpu
145147
torch: 1.6.0
@@ -181,3 +183,5 @@ workflows:
181183
branches:
182184
only:
183185
- dev-1.x
186+
- 1.x
187+
- master

.github/workflows/test_mim.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
2+
name: test-mim
3+
4+
on:
5+
push:
6+
paths:
7+
- 'model-index.yml'
8+
- 'configs/**'
9+
10+
pull_request:
11+
paths:
12+
- 'model-index.yml'
13+
- 'configs/**'
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
build_cpu:
21+
runs-on: ubuntu-18.04
22+
strategy:
23+
matrix:
24+
python-version: [3.7]
25+
torch: [1.8.0]
26+
include:
27+
- torch: 1.8.0
28+
torch_version: torch1.8
29+
torchvision: 0.9.0
30+
steps:
31+
- uses: actions/checkout@v2
32+
- name: Set up Python ${{ matrix.python-version }}
33+
uses: actions/setup-python@v2
34+
with:
35+
python-version: ${{ matrix.python-version }}
36+
- name: Upgrade pip
37+
run: pip install pip --upgrade
38+
- name: Install PyTorch
39+
run: pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
40+
- name: Install openmim
41+
run: pip install openmim
42+
- name: Build and install
43+
run: rm -rf .eggs && mim install -e .
44+
- name: test commands of mim
45+
run: mim search mmsegmentation>=1.0.0rc0

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ repos:
4848
name: update-model-index
4949
description: Collect model information and update model-index.yml
5050
entry: .dev/md2yml.py
51-
additional_dependencies: [lxml, opencv-python, mmengine]
51+
additional_dependencies: [mmengine, lxml, opencv-python]
5252
language: python
5353
files: ^configs/.*\.md$
5454
require_serial: true

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Please refer to [changelog.md](docs/en/notes/changelog.md) for details and relea
7171

7272
## Installation
7373

74-
Please refer to [get_started.md](docs/en/get_started.md#installation) for installation and [dataset_prepare.md](docs/en/user_guides/dataset_prepare.md#prepare-datasets) for dataset preparation.
74+
Please refer to [get_started.md](docs/en/get_started.md#installation) for installation and [dataset_prepare.md](docs/en/user_guides/2_dataset_prepare.md#prepare-datasets) for dataset preparation.
7575

7676
## Get Started
7777

@@ -143,22 +143,22 @@ Supported methods:
143143

144144
Supported datasets:
145145

146-
- [x] [Cityscapes](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/dataset_prepare.md#cityscapes)
147-
- [x] [PASCAL VOC](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/dataset_prepare.md#pascal-voc)
148-
- [x] [ADE20K](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/dataset_prepare.md#ade20k)
149-
- [x] [Pascal Context](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/dataset_prepare.md#pascal-context)
150-
- [x] [COCO-Stuff 10k](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/dataset_prepare.md#coco-stuff-10k)
151-
- [x] [COCO-Stuff 164k](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/dataset_prepare.md#coco-stuff-164k)
152-
- [x] [CHASE_DB1](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/dataset_prepare.md#chase-db1)
153-
- [x] [DRIVE](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/dataset_prepare.md#drive)
154-
- [x] [HRF](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/dataset_prepare.md#hrf)
155-
- [x] [STARE](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/dataset_prepare.md#stare)
156-
- [x] [Dark Zurich](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/dataset_prepare.md#dark-zurich)
157-
- [x] [Nighttime Driving](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/dataset_prepare.md#nighttime-driving)
158-
- [x] [LoveDA](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/dataset_prepare.md#loveda)
159-
- [x] [Potsdam](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/dataset_prepare.md#isprs-potsdam)
160-
- [x] [Vaihingen](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/dataset_prepare.md#isprs-vaihingen)
161-
- [x] [iSAID](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/dataset_prepare.md#isaid)
146+
- [x] [Cityscapes](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/user_guides/2_dataset_prepare.md#cityscapes)
147+
- [x] [PASCAL VOC](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/user_guides/2_dataset_prepare.md#pascal-voc)
148+
- [x] [ADE20K](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/user_guides/2_dataset_prepare.md#ade20k)
149+
- [x] [Pascal Context](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/user_guides/2_dataset_prepare.md#pascal-context)
150+
- [x] [COCO-Stuff 10k](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/user_guides/2_dataset_prepare.md#coco-stuff-10k)
151+
- [x] [COCO-Stuff 164k](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/user_guides/2_dataset_prepare.md#coco-stuff-164k)
152+
- [x] [CHASE_DB1](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/user_guides/2_dataset_prepare.md#chase-db1)
153+
- [x] [DRIVE](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/user_guides/2_dataset_prepare.md#drive)
154+
- [x] [HRF](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/user_guides/2_dataset_prepare.md#hrf)
155+
- [x] [STARE](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/user_guides/2_dataset_prepare.md#stare)
156+
- [x] [Dark Zurich](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/user_guides/2_dataset_prepare.md#dark-zurich)
157+
- [x] [Nighttime Driving](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/user_guides/2_dataset_prepare.md#nighttime-driving)
158+
- [x] [LoveDA](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/user_guides/2_dataset_prepare.md#loveda)
159+
- [x] [Potsdam](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/user_guides/2_dataset_prepare.md#isprs-potsdam)
160+
- [x] [Vaihingen](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/user_guides/2_dataset_prepare.md#isprs-vaihingen)
161+
- [x] [iSAID](https://github.com/open-mmlab/mmsegmentation/blob/1.x/docs/en/user_guides/2_dataset_prepare.md#isaid)
162162

163163
Please refer to [FAQ](docs/en/notes/faq.md) for frequently asked questions.
164164

docs/en/get_started.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,8 @@ mim install "mmcv>=2.0.0rc1"
5151
Case a: If you develop and run mmseg directly, install it from source:
5252

5353
```shell
54-
git clone https://github.com/open-mmlab/mmsegmentation.git
54+
git clone -b dev-1.x https://github.com/open-mmlab/mmsegmentation.git
5555
cd mmsegmentation
56-
git checkout dev-1.x
57-
# branch 'dev-1.x' set up to track remote branch 'dev-1.x' from 'origin'.
5856
pip install -v -e .
5957
# '-v' means verbose, or more output
6058
# '-e' means installing a project in editable mode,

0 commit comments

Comments
 (0)