Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] modify readme and configs of stylegan2&pegan #1418

Merged
merged 1 commit into from
Nov 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 34 additions & 34 deletions configs/positional_encoding_in_gans/README.md

Large diffs are not rendered by default.

68 changes: 34 additions & 34 deletions configs/positional_encoding_in_gans/metafile.yml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@
fixed_input=True,
vis_kwargs_list=dict(type='GAN', name='fake_img'))
]
default_hooks = dict(
checkpoint=dict(save_best=['FID-Full-50k/fid'], rule=['less']))
default_hooks = dict(checkpoint=dict(save_best=['FID-50k/fid'], rule=['less']))
# METRICS
metrics = [
dict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@
fixed_input=True,
vis_kwargs_list=dict(type='GAN', name='fake_img'))
]
default_hooks = dict(
checkpoint=dict(save_best=['FID-Full-50k/fid'], rule=['less']))
default_hooks = dict(checkpoint=dict(save_best=['FID-50k/fid'], rule=['less']))
# METRICS
metrics = [
dict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@
fixed_input=True,
vis_kwargs_list=dict(type='GAN', name='fake_img'))
]
default_hooks = dict(
checkpoint=dict(save_best=['FID-Full-50k/fid'], rule=['less']))
default_hooks = dict(checkpoint=dict(save_best=['FID-50k/fid'], rule=['less']))
# METRICS
metrics = [
dict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@
fixed_input=True,
vis_kwargs_list=dict(type='GAN', name='fake_img'))
]
default_hooks = dict(
checkpoint=dict(save_best=['FID-Full-50k/fid'], rule=['less']))
default_hooks = dict(checkpoint=dict(save_best=['FID-50k/fid'], rule=['less']))
# METRICS
metrics = [
dict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@
fixed_input=True,
vis_kwargs_list=dict(type='GAN', name='fake_img'))
]
default_hooks = dict(
checkpoint=dict(save_best=['FID-Full-50k/fid'], rule=['less']))
default_hooks = dict(checkpoint=dict(save_best=['FID-50k/fid'], rule=['less']))
# METRICS
metrics = [
dict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@
fixed_input=True,
vis_kwargs_list=dict(type='GAN', name='fake_img'))
]
default_hooks = dict(
checkpoint=dict(save_best=['FID-Full-50k/fid'], rule=['less']))
default_hooks = dict(checkpoint=dict(save_best=['FID-50k/fid'], rule=['less']))
# METRICS
metrics = [
dict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@
fixed_input=True,
vis_kwargs_list=dict(type='GAN', name='fake_img'))
]
default_hooks = dict(
checkpoint=dict(save_best=['FID-Full-50k/fid'], rule=['less']))
default_hooks = dict(checkpoint=dict(save_best=['FID-50k/fid'], rule=['less']))
# METRICS
metrics = [
dict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@
fixed_input=True,
vis_kwargs_list=dict(type='GAN', name='fake_img'))
]
default_hooks = dict(
checkpoint=dict(save_best=['FID-Full-50k/fid'], rule=['less']))
default_hooks = dict(checkpoint=dict(save_best=['FID-50k/fid'], rule=['less']))
# METRICS
metrics = [
dict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@
fixed_input=True,
vis_kwargs_list=dict(type='GAN', name='fake_img'))
]
default_hooks = dict(
checkpoint=dict(save_best=['FID-Full-50k/fid'], rule=['less']))
default_hooks = dict(checkpoint=dict(save_best=['FID-50k/fid'], rule=['less']))
# METRICS
metrics = [
dict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@
fixed_input=True,
vis_kwargs_list=dict(type='GAN', name='fake_img'))
]
default_hooks = dict(
checkpoint=dict(save_best=['FID-Full-50k/fid'], rule=['less']))
default_hooks = dict(checkpoint=dict(save_best=['FID-50k/fid'], rule=['less']))
# METRICS
metrics = [
dict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@
fixed_input=True,
vis_kwargs_list=dict(type='GAN', name='fake_img'))
]
default_hooks = dict(
checkpoint=dict(save_best=['FID-Full-50k/fid'], rule=['less']))
default_hooks = dict(checkpoint=dict(save_best=['FID-50k/fid'], rule=['less']))
# METRICS
metrics = [
dict(
Expand Down
42 changes: 21 additions & 21 deletions configs/styleganv2/README.md

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions configs/styleganv2/metafile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Collections:
- https://openaccess.thecvf.com/content_CVPR_2020/html/Karras_Analyzing_and_Improving_the_Image_Quality_of_StyleGAN_CVPR_2020_paper.html
README: configs/styleganv2/README.md
Models:
- Config: https://github.com/open-mmlab/mmediting/tree/master/configs/styleganv2/stylegan2_c2_8xb4_ffhq-1024x1024.py
- Config: configs/styleganv2/stylegan2_c2_8xb4_ffhq-1024x1024.py
In Collection: StyleGANv2
Metadata:
Training Data: FFHQ
Expand All @@ -20,7 +20,7 @@ Models:
Recall50k: 49.4
Task: Styleganv2
Weights: https://download.openmmlab.com/mmgen/stylegan2/official_weights/stylegan2-ffhq-config-f-official_20210327_171224-bce9310c.pth
- Config: https://github.com/open-mmlab/mmediting/tree/master/configs/styleganv2/stylegan2_c2_8xb4_lsun-car-384x512.py
- Config: configs/styleganv2/stylegan2_c2_8xb4_lsun-car-384x512.py
In Collection: StyleGANv2
Metadata:
Training Data: Others
Expand All @@ -33,7 +33,7 @@ Models:
Recall50k: 48.19
Task: Styleganv2
Weights: https://download.openmmlab.com/mmgen/stylegan2/official_weights/stylegan2-car-config-f-official_20210327_172340-8cfe053c.pth
- Config: https://github.com/open-mmlab/mmediting/tree/master/configs/styleganv2/stylegan2_c2_8xb4-800kiters_lsun-horse-256x256.py
- Config: configs/styleganv2/stylegan2_c2_8xb4-800kiters_lsun-horse-256x256.py
In Collection: StyleGANv2
Metadata:
Training Data: Others
Expand All @@ -43,7 +43,7 @@ Models:
Metrics: {}
Task: Styleganv2
Weights: https://download.openmmlab.com/mmgen/stylegan2/official_weights/stylegan2-horse-config-f-official_20210327_173203-ef3e69ca.pth
- Config: https://github.com/open-mmlab/mmediting/tree/master/configs/styleganv2/stylegan2_c2_8xb4-800kiters_lsun-church-256x256.py
- Config: configs/styleganv2/stylegan2_c2_8xb4-800kiters_lsun-church-256x256.py
In Collection: StyleGANv2
Metadata:
Training Data: Others
Expand All @@ -53,7 +53,7 @@ Models:
Metrics: {}
Task: Styleganv2
Weights: https://download.openmmlab.com/mmgen/stylegan2/official_weights/stylegan2-church-config-f-official_20210327_172657-1d42b7d1.pth
- Config: https://github.com/open-mmlab/mmediting/tree/master/configs/styleganv2/stylegan2_c2_8xb4-800kiters_lsun-cat-256x256.py
- Config: configs/styleganv2/stylegan2_c2_8xb4-800kiters_lsun-cat-256x256.py
In Collection: StyleGANv2
Metadata:
Training Data: CAT
Expand All @@ -63,7 +63,7 @@ Models:
Metrics: {}
Task: Styleganv2
Weights: https://download.openmmlab.com/mmgen/stylegan2/official_weights/stylegan2-cat-config-f-official_20210327_172444-15bc485b.pth
- Config: https://github.com/open-mmlab/mmediting/tree/master/configs/styleganv2/stylegan2_c2_8xb4-800kiters_ffhq-256x256.py
- Config: configs/styleganv2/stylegan2_c2_8xb4-800kiters_ffhq-256x256.py
In Collection: StyleGANv2
Metadata:
Training Data: FFHQ
Expand All @@ -76,7 +76,7 @@ Models:
Recall50k: 40.417
Task: Styleganv2
Weights: https://download.openmmlab.com/mmgen/stylegan2/stylegan2_c2_ffhq_256_b4x8_20210407_160709-7890ae1f.pth
- Config: https://github.com/open-mmlab/mmediting/tree/master/configs/styleganv2/stylegan2_c2_8xb4_ffhq-1024x1024.py
- Config: configs/styleganv2/stylegan2_c2_8xb4_ffhq-1024x1024.py
In Collection: StyleGANv2
Metadata:
Training Data: FFHQ
Expand All @@ -89,7 +89,7 @@ Models:
Recall50k: 49.583
Task: Styleganv2
Weights: https://download.openmmlab.com/mmgen/stylegan2/stylegan2_c2_ffhq_1024_b4x8_20210407_150045-618c9024.pth
- Config: https://github.com/open-mmlab/mmediting/tree/master/configs/styleganv2/stylegan2_c2_8xb4_lsun-car-384x512.py
- Config: configs/styleganv2/stylegan2_c2_8xb4_lsun-car-384x512.py
In Collection: StyleGANv2
Metadata:
Training Data: Others
Expand All @@ -102,7 +102,7 @@ Models:
Recall50k: 50.576
Task: Styleganv2
Weights: https://download.openmmlab.com/mmgen/stylegan2/stylegan2_c2_lsun-car_384x512_b4x8_1800k_20210424_160929-fc9072ca.pth
- Config: https://github.com/open-mmlab/mmediting/tree/master/configs/styleganv2/stylegan2_c2_8xb4-800kiters_ffhq-256x256.py
- Config: configs/styleganv2/stylegan2_c2_8xb4-800kiters_ffhq-256x256.py
In Collection: StyleGANv2
Metadata:
Training Data: FFHQ
Expand All @@ -113,7 +113,7 @@ Models:
FID50k: 3.992
Task: Styleganv2
Weights: https://download.openmmlab.com/mmgen/stylegan2/stylegan2_c2_ffhq_256_b4x8_20210407_160709-7890ae1f.pth
- Config: https://github.com/open-mmlab/mmediting/tree/master/configs/styleganv2/stylegan2_c2-PL_8xb4-fp16-partial-GD-no-scaler-800kiters_ffhq-256x256.py
- Config: configs/styleganv2/stylegan2_c2-PL_8xb4-fp16-partial-GD-no-scaler-800kiters_ffhq-256x256.py
In Collection: StyleGANv2
Metadata:
Training Data: FFHQ
Expand All @@ -124,7 +124,7 @@ Models:
FID50k: 4.331
Task: Styleganv2
Weights: https://download.openmmlab.com/mmgen/stylegan2/stylegan2_c2_fp16_partial-GD_PL-no-scaler_ffhq_256_b4x8_800k_20210508_114854-dacbe4c9.pth
- Config: https://github.com/open-mmlab/mmediting/tree/master/configs/styleganv2/stylegan2_c2-PL-R1_8xb4-fp16-globalG-partialD-no-scaler-800kiters_ffhq-256x256.py
- Config: configs/styleganv2/stylegan2_c2-PL-R1_8xb4-fp16-globalG-partialD-no-scaler-800kiters_ffhq-256x256.py
In Collection: StyleGANv2
Metadata:
Training Data: FFHQ
Expand All @@ -135,7 +135,7 @@ Models:
FID50k: 4.362
Task: Styleganv2
Weights: https://download.openmmlab.com/mmgen/stylegan2/stylegan2_c2_fp16-globalG-partialD_PL-R1-no-scaler_ffhq_256_b4x8_800k_20210508_114930-ef8270d4.pth
- Config: https://github.com/open-mmlab/mmediting/tree/master/configs/styleganv2/stylegan2_c2-PL-R1_8xb4-apex-fp16-no-scaler-800kiters_ffhq-256x256.py
- Config: configs/styleganv2/stylegan2_c2-PL-R1_8xb4-apex-fp16-no-scaler-800kiters_ffhq-256x256.py
In Collection: StyleGANv2
Metadata:
Training Data: FFHQ
Expand All @@ -146,7 +146,7 @@ Models:
FID50k: 4.614
Task: Styleganv2
Weights: https://download.openmmlab.com/mmgen/stylegan2/stylegan2_c2_apex_fp16_PL-R1-no-scaler_ffhq_256_b4x8_800k_20210508_114701-c2bb8afd.pth
- Config: https://github.com/open-mmlab/mmediting/tree/master/configs/styleganv2/stylegan2_c2_8xb4_ffhq-1024x1024.py
- Config: configs/styleganv2/stylegan2_c2_8xb4_ffhq-1024x1024.py
In Collection: StyleGANv2
Metadata:
Training Data: FFHQ
Expand All @@ -157,7 +157,7 @@ Models:
FID50k: 2.8732
Task: Styleganv2
Weights: https://download.openmmlab.com/mmgen/stylegan2/official_weights/stylegan2-ffhq-config-f-official_20210327_171224-bce9310c.pth
- Config: https://github.com/open-mmlab/mmediting/tree/master/configs/styleganv2/stylegan2_c2_8xb4_ffhq-1024x1024.py
- Config: configs/styleganv2/stylegan2_c2_8xb4_ffhq-1024x1024.py
In Collection: StyleGANv2
Metadata:
Training Data: FFHQ
Expand All @@ -168,7 +168,7 @@ Models:
FID50k: 2.9413
Task: Styleganv2
Weights: https://download.openmmlab.com/mmgen/stylegan2/stylegan2_c2_ffhq_1024_b4x8_20210407_150045-618c9024.pth
- Config: https://github.com/open-mmlab/mmediting/tree/master/configs/styleganv2/stylegan2_c2_8xb4_ffhq-1024x1024.py
- Config: configs/styleganv2/stylegan2_c2_8xb4_ffhq-1024x1024.py
In Collection: StyleGANv2
Metadata:
Training Data: FFHQ
Expand All @@ -179,7 +179,7 @@ Models:
FID50k: 2.8134
Task: Styleganv2
Weights: https://download.openmmlab.com/mmgen/stylegan2/official_weights/stylegan2-ffhq-config-f-official_20210327_171224-bce9310c.pth
- Config: https://github.com/open-mmlab/mmediting/tree/master/configs/styleganv2/stylegan2_c2_8xb4_ffhq-1024x1024.py
- Config: configs/styleganv2/stylegan2_c2_8xb4_ffhq-1024x1024.py
In Collection: StyleGANv2
Metadata:
Training Data: FFHQ
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@
metrics = [
dict(
type='FrechetInceptionDistance',
prefix='FID-Full-50k',
prefix='FID-50k',
fake_nums=50000,
real_nums=50000,
inception_style='StyleGAN',
sample_model='ema'),
dict(type='PrecisionAndRecall', fake_nums=50000, prefix='PR-50K'),
Expand All @@ -77,7 +78,7 @@
# checkpoint=dict(
# save_best=['FID-Full-50k/fid', 'IS-50k/is'],
# rule=['less', 'greater']))
default_hooks = dict(checkpoint=dict(save_best='FID-Full-50k/fid'))
default_hooks = dict(checkpoint=dict(save_best='FID-50k/fid'))

val_evaluator = dict(metrics=metrics)
test_evaluator = dict(metrics=metrics)