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

[CodeCamp #84] Support SwinIR model #1476

Merged
merged 41 commits into from
Dec 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
a9933f1
[Feature] Support SwinIR model
Zdafeng Nov 26, 2022
59e866c
[Feature] Support SwinIR model
Zdafeng Nov 26, 2022
a752c89
[Feature] Support SwinIR model
Zdafeng Nov 29, 2022
1cefcd6
Merge branch 'dev-1.x' of github.com:open-mmlab/mmediting into Zdafen…
Zdafeng Nov 29, 2022
2f7f756
[Feature] Support SwinIR model
Zdafeng Nov 30, 2022
a665408
Merge branch 'dev-1.x' of github.com:open-mmlab/mmediting into Zdafen…
Zdafeng Nov 30, 2022
38890a2
[Feature] Support SwinIR model
Zdafeng Dec 5, 2022
eeac87c
Merge branch 'dev-1.x' of github.com:open-mmlab/mmediting into Zdafen…
Zdafeng Dec 5, 2022
bfaa9e8
[Feature] Support SwinIR model
Zdafeng Dec 14, 2022
b9a1b40
Merge branch 'dev-1.x' of github.com:open-mmlab/mmediting into Zdafen…
Zdafeng Dec 14, 2022
a86649f
fix configs
Z-Fran Dec 15, 2022
288c58f
rename
Z-Fran Dec 15, 2022
890c732
Merge branch 'dev-1.x' into Zdafeng/add_winir_sr
Z-Fran Dec 15, 2022
61277bb
remove testdata
Z-Fran Dec 15, 2022
8971fe4
refactor decompression test config
Z-Fran Dec 15, 2022
0d570c5
update the readme
Zdafeng Dec 15, 2022
945e56e
Merge branch 'dev-1.x' of github.com:open-mmlab/mmediting into Zdafen…
Zdafeng Dec 15, 2022
25c9f92
Merge branch 'Zdafeng/add_winir_sr' of github.com:Zdafeng/mmediting i…
Zdafeng Dec 15, 2022
35399de
[Feature] Support SwinIR model
Zdafeng Dec 15, 2022
c25a54b
update random JPEG and noise
Zdafeng Dec 19, 2022
dce688c
Merge branch 'dev-1.x' of github.com:open-mmlab/mmediting into Zdafen…
Zdafeng Dec 19, 2022
37d8f11
update random JPEG and noise
Zdafeng Dec 19, 2022
1e5fe81
update real sr large config
Zdafeng Dec 19, 2022
8943a0f
fix sr configs
Z-Fran Dec 20, 2022
aea4d25
fix car and denoising configs
Z-Fran Dec 20, 2022
612f707
fix random_degradations
Z-Fran Dec 23, 2022
79a808d
fix readme
Z-Fran Dec 23, 2022
e5ff349
refactor swinirnet
Z-Fran Dec 23, 2022
b09a49b
fix ut
Z-Fran Dec 23, 2022
3bfc3a9
Merge branch 'dev-1.x' into Zdafeng/add_winir_sr
Z-Fran Dec 23, 2022
63016b5
remove files
Z-Fran Dec 23, 2022
08746c7
Merge branch 'Zdafeng/add_winir_sr' of https://github.com/Zdafeng/mme…
Z-Fran Dec 23, 2022
89399af
fix init
Z-Fran Dec 23, 2022
04b4a3e
fix jpeg comp
Z-Fran Dec 29, 2022
add1f15
fix readme
Z-Fran Dec 29, 2022
2141179
Merge branch 'dev-1.x' into Zdafeng/add_winir_sr
Z-Fran Dec 29, 2022
c51d6f0
fix lint
Z-Fran Dec 29, 2022
89a5e7b
fix ut
Z-Fran Dec 30, 2022
28ff9b0
Merge branch 'dev-1.x' into Zdafeng/add_winir_sr
Z-Fran Dec 30, 2022
70dc4a3
fix ut
Z-Fran Dec 30, 2022
f1906e2
fix ut
Z-Fran Dec 30, 2022
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
66 changes: 66 additions & 0 deletions configs/_base_/datasets/decompression_test_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
quality = 10
test_pipeline = [
dict(
type='LoadImageFromFile',
key='img',
color_type='color',
channel_order='rgb',
imdecode_backend='cv2'),
dict(
type='LoadImageFromFile',
key='gt',
color_type='color',
channel_order='rgb',
imdecode_backend='cv2'),
dict(
type='RandomJPEGCompression',
params=dict(quality=[quality, quality], color_type='color'),
bgr2rgb=True,
keys=['img']),
dict(type='PackEditInputs')
]

classic5_data_root = 'data/Classic5'
classic5_dataloader = dict(
num_workers=4,
persistent_workers=False,
drop_last=False,
sampler=dict(type='DefaultSampler', shuffle=False),
dataset=dict(
type='BasicImageDataset',
metainfo=dict(dataset_type='classic5', task_name='CAR'),
data_root=classic5_data_root,
data_prefix=dict(img='', gt=''),
pipeline=test_pipeline))
classic5_evaluator = [
dict(type='PSNR', prefix='Classic5'),
dict(type='SSIM', prefix='Classic5'),
]

live1_data_root = 'data/LIVE1'
live1_dataloader = dict(
num_workers=4,
persistent_workers=False,
drop_last=False,
sampler=dict(type='DefaultSampler', shuffle=False),
dataset=dict(
type='BasicImageDataset',
metainfo=dict(dataset_type='live1', task_name='CAR'),
data_root=live1_data_root,
data_prefix=dict(img='', gt=''),
pipeline=test_pipeline))
live1_evaluator = [
dict(type='PSNR', prefix='LIVE1'),
dict(type='SSIM', prefix='LIVE1'),
]

# test config
test_cfg = dict(type='MultiTestLoop')
test_dataloader = [
classic5_dataloader,
live1_dataloader,
]
test_evaluator = [
classic5_evaluator,
live1_evaluator,
]
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
params=dict(
noise_type=['gaussian'],
noise_prob=[1],
gaussian_sigma=[sigma * 255, sigma * 255],
gaussian_sigma=[sigma, sigma],
gaussian_gray_noise_prob=0),
keys=['img']),
dict(type='PackEditInputs')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
params=dict(
noise_type=['gaussian'],
noise_prob=[1],
gaussian_sigma=[sigma * 255, sigma * 255],
gaussian_sigma=[sigma, sigma],
gaussian_gray_noise_prob=1),
keys=['img']),
dict(type='PackEditInputs')
Expand Down
512 changes: 512 additions & 0 deletions configs/swinir/README.md

Large diffs are not rendered by default.

503 changes: 503 additions & 0 deletions configs/swinir/README_zh-CN.md

Large diffs are not rendered by default.

Loading