Skip to content

Commit 768e022

Browse files
authored
Merge pull request #1506 from open-mmlab/dev-1.x
Bump Version to 1.0.0rc4
2 parents df268b5 + a87d897 commit 768e022

File tree

249 files changed

+16769
-1856
lines changed

Some content is hidden

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

249 files changed

+16769
-1856
lines changed

.circleci/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
mim install 'mmdet >= 3.0.0rc2'
6666
pip install -r requirements/tests.txt
6767
pip install git+https://github.com/openai/CLIP.git
68+
pip install imageio-ffmpeg
6869
- run:
6970
name: Build and install
7071
command: |
@@ -110,6 +111,7 @@ jobs:
110111
docker exec mmedit mim install 'mmdet >= 3.0.0rc2'
111112
docker exec mmedit pip install -r requirements/tests.txt
112113
docker exec mmedit pip install git+https://github.com/openai/CLIP.git
114+
docker exec mmedit pip install imageio-ffmpeg
113115
- run:
114116
name: Build and install
115117
command: |

.dev_scripts/update_model_index.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import mmengine
1818

19-
MMEditing_ROOT = osp.dirname(osp.dirname(osp.dirname(__file__)))
19+
MMEditing_ROOT = osp.dirname(osp.dirname(__file__))
2020

2121
all_training_data = [
2222
'div2k', 'celeba', 'places', 'comp1k', 'vimeo90k', 'reds', 'ffhq', 'cufed',
@@ -156,6 +156,8 @@ def parse_md(md_file):
156156
collection['Name'] = name
157157
collection_name = name
158158
is_liif = collection_name.upper() == 'LIIF'
159+
task_line = lines[4]
160+
task = task_line.strip().split(':')[-1].strip()
159161
while i < len(lines):
160162
# parse reference
161163
if lines[i].startswith('> ['):
@@ -202,7 +204,6 @@ def parse_md(md_file):
202204

203205
j = i + 2
204206
while j < len(lines) and lines[j][0] == '|':
205-
task = get_task_name(md_file)
206207
line = lines[j].split('|')[1:-1]
207208

208209
if line[config_idx].find('](') >= 0:

.github/workflows/merge_stage_test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
run: |
5151
pip install -r requirements/tests.txt
5252
pip install git+https://github.com/openai/CLIP.git
53+
pip install imageio-ffmpeg
5354
- name: Build and install
5455
run: rm -rf .eggs && pip install -e .
5556
- name: Run unittests and generate coverage report
@@ -100,6 +101,8 @@ jobs:
100101
run: |
101102
pip install -r requirements/tests.txt
102103
pip install git+https://github.com/openai/CLIP.git
104+
pip install imageio-ffmpeg
105+
103106
- name: Build and install
104107
run: rm -rf .eggs && pip install -e .
105108
- name: Run unittests and generate coverage report
@@ -154,6 +157,7 @@ jobs:
154157
pip install -U openmim
155158
mim install 'mmcv >= 2.0.0rc1'
156159
pip install -r requirements/tests.txt
160+
pip install imageio-ffmpeg
157161
- name: Build and install
158162
run: |
159163
python setup.py check -m -s
@@ -186,6 +190,7 @@ jobs:
186190
mim install 'mmdet >= 3.0.0rc2'
187191
python -m pip install -r requirements/tests.txt
188192
python -m pip install git+https://github.com/openai/CLIP.git
193+
python -m pip install imageio-ffmpeg
189194
- name: Build and install
190195
run: |
191196
python -m pip install -e .

.github/workflows/pr_stage_test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
run: |
4545
pip install -r requirements/tests.txt
4646
pip install git+https://github.com/openai/CLIP.git
47+
pip install imageio-ffmpeg
4748
- name: Build and install
4849
run: rm -rf .eggs && pip install -e .
4950
- name: Run unittests and generate coverage report
@@ -100,6 +101,7 @@ jobs:
100101
mim install 'mmdet >= 3.0.0rc2'
101102
pip install -r requirements/tests.txt
102103
pip install git+https://github.com/openai/CLIP.git
104+
pip install imageio-ffmpeg
103105
- name: Build and install
104106
run: |
105107
python setup.py check -m -s
@@ -135,6 +137,7 @@ jobs:
135137
mim install 'mmdet >= 3.0.0rc2'
136138
python -m pip install -r requirements/tests.txt
137139
pip install git+https://github.com/openai/CLIP.git
140+
python -m pip install imageio-ffmpeg
138141
- name: Build and install
139142
run: |
140143
python -m pip install -e .

.readthedocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ python:
77
install:
88
- requirements: requirements/docs.txt
99
- requirements: requirements/readthedocs.txt
10+
- requirements: requirements/runtime.txt

README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,14 @@ hope MMEditing could provide better experience.
106106

107107
### 🌟 Preview of 1.x version
108108

109-
A brand new version of [**MMEditing v1.0.0rc3**](https://github.com/open-mmlab/mmediting/releases/tag/v1.0.0rc3) was released in 09/11/2022:
109+
A brand new version of [**MMEditing v1.0.0rc4**](https://github.com/open-mmlab/mmediting/releases/tag/v1.0.0rc4) was released in 05/12/2022:
110110

111-
- Support all the tasks, models, metrics, and losses in [MMGeneration](https://github.com/open-mmlab/mmgeneration) 😍。
111+
- Support Text2Image Task! [Disco-Diffusion](configs/disco_diffusion/README.md)
112+
- Support 3D-aware Generation Task! [EG3D](configs/eg3d/README.md)
113+
- Support all the tasks, models, metrics, and losses in [MMGeneration](https://github.com/open-mmlab/mmgeneration) 😍.
112114
- Unifies interfaces of all components based on [MMEngine](https://github.com/open-mmlab/mmengine).
113115
- Support patch-based and slider-based image and video comparison viewer.
114116
- Support image colorization.
115-
- Convert `mmdet` and `clip` to optional requirements.
116117

117118
Find more new features in [1.x branch](https://github.com/open-mmlab/mmediting/tree/1.x). Issues and PRs are welcome!
118119

@@ -266,6 +267,21 @@ Supported algorithms:
266267

267268
</details>
268269

270+
<details open>
271+
<summary>Text2Image</summary>
272+
273+
-[Disco-Diffusion](configs/disco_diffusion/README.md)
274+
275+
</details>
276+
277+
<details open>
278+
279+
<summary>3D-aware Generation</summary>
280+
281+
-[EG3D](configs/eg3d/README.md)
282+
283+
</details>
284+
269285
Please refer to [model_zoo](https://mmediting.readthedocs.io/en/1.x/3_model_zoo.html) for more details.
270286

271287
## Contributing

README_zh-CN.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,14 @@ MMEditing 缜密地设计新的框架并将其精心实现,希望能够为您
105105

106106
### 🌟 1.x 预览版本
107107

108-
全新的 [**MMEditing v1.0.0rc3**](https://github.com/open-mmlab/mmediting/releases/tag/v1.0.0rc3) 已经在 09/11/2022 发布:
108+
全新的 [**MMEditing v1.0.0rc4**](https://github.com/open-mmlab/mmediting/releases/tag/v1.0.0rc4) 已经在 05/12/2022 发布:
109109

110+
- 支持了图文生成任务! [Disco-Diffusion](configs/disco_diffusion/README.md)
111+
- 支持了3D级图像生成任务! [EG3D](configs/eg3d/README.md)
110112
- 支持[MMGeneration](https://github.com/open-mmlab/mmgeneration)中的全量任务、模型、优化函数和评价指标 😍。
111113
- 基于[MMEngine](https://github.com/open-mmlab/mmengine)统一了各组件接口。
112114
- 支持基于图像子块以及滑动条的图像和视频比较可视化工具。
113115
- 支持图像上色任务。
114-
-`mmdet``clip` 切换为可选依赖
115116

116117
[1.x 分支](https://github.com/open-mmlab/mmediting/tree/1.x)中发现更多特性!欢迎提 Issues 和 PRs!
117118

@@ -264,6 +265,21 @@ pip3 install -e .
264265

265266
</details>
266267

268+
<details open>
269+
<summary>Text2Image</summary>
270+
271+
-[Disco-Diffusion](configs/disco_diffusion/README.md)
272+
273+
</details>
274+
275+
<details open>
276+
277+
<summary>3D-aware Generation</summary>
278+
279+
-[EG3D](configs/eg3d/README.md)
280+
281+
</details>
282+
267283
请参考[模型库](https://mmediting.readthedocs.io/zh_CN/1.x/3_model_zoo.html)了解详情。
268284

269285
## 参与贡献
@@ -316,10 +332,10 @@ MMEditing 是一款由不同学校和公司共同贡献的开源项目。我们
316332

317333
## 欢迎加入 OpenMMLab 社区
318334

319-
扫描下方的二维码可关注 OpenMMLab 团队的 [知乎官方账号](https://www.zhihu.com/people/openmmlab),加入 OpenMMLab 团队的 [官方交流 QQ 群](https://jq.qq.com/?_wv=1027&k=GJP18SjI),或通过群主小喵加入微信官方交流群。
335+
扫描下方的二维码可关注 OpenMMLab 团队的 [知乎官方账号](https://www.zhihu.com/people/openmmlab),加入 OpenMMLab 团队的 [官方交流 QQ 群](https://jq.qq.com/?_wv=1027&k=K0QI8ByU),或通过群主小喵加入微信官方交流群。
320336

321337
<div align="center">
322-
<img src="docs/zh_cn/_static/image/zhihu_qrcode.jpg" height="500" /> <img src="https://raw.githubusercontent.com/open-mmlab/mmcv/master/docs/en/_static/qq_group_qrcode.jpg" height="500" /> <img src="https://raw.githubusercontent.com/open-mmlab/mmcv/master/docs/en/_static/wechat_qrcode.jpg" height="500" />
338+
<img src="docs/zh_cn/_static/image/zhihu_qrcode.jpg" height="500" /> <img src="https://user-images.githubusercontent.com/25839884/203927852-e15def4d-a0eb-4dfc-9bfb-7cf09ea945d0.png" height="500" /> <img src="https://raw.githubusercontent.com/open-mmlab/mmcv/master/docs/en/_static/wechat_qrcode.jpg" height="500" />
323339
</div>
324340

325341
我们会在 OpenMMLab 社区为大家

configs/_base_/datasets/grow_scale_imgs_ffhq_styleganv1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
num_workers=4,
3737
batch_size=64,
3838
dataset=dict(
39-
type='UnconditionalImageDataset',
39+
type='BasicImageDataset',
4040
pipeline=pipeline,
4141
data_root='./data/ffhq/images'),
4242
sampler=dict(type='DefaultSampler', shuffle=False))
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# dataset settings
2+
dataset_type = 'ImageNet'
3+
4+
# different from mmcls, we adopt the setting used in BigGAN.
5+
# We use `RandomCropLongEdge` in training and `CenterCropLongEdge` in testing.
6+
train_pipeline = [
7+
dict(type='LoadImageFromFile', key='img'),
8+
dict(type='RandomCropLongEdge', keys=['img']),
9+
dict(type='Resize', scale=(512, 512), keys=['img'], backend='pillow'),
10+
dict(type='Flip', flip_ratio=0.5, direction='horizontal'),
11+
dict(type='PackEditInputs')
12+
]
13+
14+
test_pipeline = [
15+
dict(type='LoadImageFromFile', key='img'),
16+
dict(type='CenterCropLongEdge', keys=['img']),
17+
dict(type='Resize', scale=(512, 512), backend='pillow'),
18+
dict(type='PackEditInputs')
19+
]
20+
21+
train_dataloader = dict(
22+
batch_size=None,
23+
num_workers=5,
24+
dataset=dict(
25+
type=dataset_type,
26+
data_root='./data/imagenet/',
27+
ann_file='meta/train.txt',
28+
data_prefix='train',
29+
pipeline=train_pipeline),
30+
sampler=dict(type='DefaultSampler', shuffle=True),
31+
persistent_workers=True)
32+
33+
val_dataloader = dict(
34+
batch_size=None,
35+
num_workers=5,
36+
dataset=dict(
37+
type=dataset_type,
38+
data_root='./data/imagenet/',
39+
ann_file='meta/train.txt',
40+
data_prefix='train',
41+
pipeline=test_pipeline),
42+
sampler=dict(type='DefaultSampler', shuffle=False),
43+
persistent_workers=True)
44+
45+
test_dataloader = val_dataloader
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# dataset settings
2+
dataset_type = 'ImageNet'
3+
4+
# different from mmcls, we adopt the setting used in BigGAN.
5+
# We use `RandomCropLongEdge` in training and `CenterCropLongEdge` in testing.
6+
train_pipeline = [
7+
dict(type='LoadImageFromFile', key='img'),
8+
dict(type='RandomCropLongEdge', keys=['img']),
9+
dict(type='Resize', scale=(64, 64), keys=['img'], backend='pillow'),
10+
dict(type='Flip', flip_ratio=0.5, direction='horizontal'),
11+
dict(type='PackEditInputs')
12+
]
13+
14+
test_pipeline = [
15+
dict(type='LoadImageFromFile', key='img'),
16+
dict(type='CenterCropLongEdge', keys=['img']),
17+
dict(type='Resize', scale=(64, 64), backend='pillow'),
18+
dict(type='PackEditInputs')
19+
]
20+
21+
train_dataloader = dict(
22+
batch_size=None,
23+
num_workers=5,
24+
dataset=dict(
25+
type=dataset_type,
26+
data_root='./data/imagenet/',
27+
ann_file='meta/train.txt',
28+
data_prefix='train',
29+
pipeline=train_pipeline),
30+
sampler=dict(type='DefaultSampler', shuffle=True),
31+
persistent_workers=True)
32+
33+
val_dataloader = dict(
34+
batch_size=64,
35+
num_workers=5,
36+
dataset=dict(
37+
type=dataset_type,
38+
data_root='./data/imagenet/',
39+
ann_file='meta/train.txt',
40+
data_prefix='train',
41+
pipeline=test_pipeline),
42+
sampler=dict(type='DefaultSampler', shuffle=False),
43+
persistent_workers=True)
44+
45+
test_dataloader = val_dataloader

0 commit comments

Comments
 (0)