Skip to content

Commit

Permalink
Tiny Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liyinshuo committed Apr 27, 2021
1 parent 0cba98c commit 8f0c8f8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 48 deletions.
24 changes: 8 additions & 16 deletions configs/restorers/rdn/rdn_x2c64b16_g1_1000k_div2k.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,15 @@
type='LoadImageFromFile',
io_backend='disk',
key='lq',
flag='unchanged'),
flag='color',
channel_order='rgb'),
dict(
type='LoadImageFromFile',
io_backend='disk',
key='gt',
flag='unchanged'),
flag='color',
channel_order='rgb'),
dict(type='RescaleToZeroOne', keys=['lq', 'gt']),
dict(
type='Normalize',
keys=['lq', 'gt'],
mean=[0, 0, 0],
std=[1, 1, 1],
to_rgb=True),
dict(type='PairedRandomCrop', gt_patch_size=64),
dict(
type='Flip', keys=['lq', 'gt'], flip_ratio=0.5,
Expand All @@ -51,19 +47,15 @@
type='LoadImageFromFile',
io_backend='disk',
key='lq',
flag='unchanged'),
flag='color',
channel_order='rgb'),
dict(
type='LoadImageFromFile',
io_backend='disk',
key='gt',
flag='unchanged'),
flag='color',
channel_order='rgb'),
dict(type='RescaleToZeroOne', keys=['lq', 'gt']),
dict(
type='Normalize',
keys=['lq', 'gt'],
mean=[0, 0, 0],
std=[1, 1, 1],
to_rgb=True),
dict(type='Collect', keys=['lq', 'gt'], meta_keys=['lq_path', 'gt_path']),
dict(type='ImageToTensor', keys=['lq', 'gt'])
]
Expand Down
24 changes: 8 additions & 16 deletions configs/restorers/rdn/rdn_x3c64b16_g1_1000k_div2k.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,15 @@
type='LoadImageFromFile',
io_backend='disk',
key='lq',
flag='unchanged'),
flag='color',
channel_order='rgb'),
dict(
type='LoadImageFromFile',
io_backend='disk',
key='gt',
flag='unchanged'),
flag='color',
channel_order='rgb'),
dict(type='RescaleToZeroOne', keys=['lq', 'gt']),
dict(
type='Normalize',
keys=['lq', 'gt'],
mean=[0, 0, 0],
std=[1, 1, 1],
to_rgb=True),
dict(type='PairedRandomCrop', gt_patch_size=96),
dict(
type='Flip', keys=['lq', 'gt'], flip_ratio=0.5,
Expand All @@ -51,19 +47,15 @@
type='LoadImageFromFile',
io_backend='disk',
key='lq',
flag='unchanged'),
flag='color',
channel_order='rgb'),
dict(
type='LoadImageFromFile',
io_backend='disk',
key='gt',
flag='unchanged'),
flag='color',
channel_order='rgb'),
dict(type='RescaleToZeroOne', keys=['lq', 'gt']),
dict(
type='Normalize',
keys=['lq', 'gt'],
mean=[0, 0, 0],
std=[1, 1, 1],
to_rgb=True),
dict(type='Collect', keys=['lq', 'gt'], meta_keys=['lq_path', 'gt_path']),
dict(type='ImageToTensor', keys=['lq', 'gt'])
]
Expand Down
24 changes: 8 additions & 16 deletions configs/restorers/rdn/rdn_x4c64b16_g1_1000k_div2k.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,15 @@
type='LoadImageFromFile',
io_backend='disk',
key='lq',
flag='unchanged'),
flag='color',
channel_order='rgb'),
dict(
type='LoadImageFromFile',
io_backend='disk',
key='gt',
flag='unchanged'),
flag='color',
channel_order='rgb'),
dict(type='RescaleToZeroOne', keys=['lq', 'gt']),
dict(
type='Normalize',
keys=['lq', 'gt'],
mean=[0, 0, 0],
std=[1, 1, 1],
to_rgb=True),
dict(type='PairedRandomCrop', gt_patch_size=128),
dict(
type='Flip', keys=['lq', 'gt'], flip_ratio=0.5,
Expand All @@ -51,19 +47,15 @@
type='LoadImageFromFile',
io_backend='disk',
key='lq',
flag='unchanged'),
flag='color',
channel_order='rgb'),
dict(
type='LoadImageFromFile',
io_backend='disk',
key='gt',
flag='unchanged'),
flag='color',
channel_order='rgb'),
dict(type='RescaleToZeroOne', keys=['lq', 'gt']),
dict(
type='Normalize',
keys=['lq', 'gt'],
mean=[0, 0, 0],
std=[1, 1, 1],
to_rgb=True),
dict(type='Collect', keys=['lq', 'gt'], meta_keys=['lq_path', 'gt_path']),
dict(type='ImageToTensor', keys=['lq', 'gt'])
]
Expand Down

0 comments on commit 8f0c8f8

Please sign in to comment.