Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liyinshuo committed May 25, 2021
1 parent 8f8027e commit ed9041c
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions configs/restorers/ttsr/ttsr-rec_x4_c64b16_g1_200k_CUFED.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,14 @@
backend='pillow'),
dict(
type='Normalize',
keys=['lq', 'gt', 'lq_up', 'ref', 'ref_downup'],
keys=['lq', 'gt'],
mean=[127.5, 127.5, 127.5],
std=[127.5, 127.5, 127.5]),
dict(
type='Normalize',
keys=['lq_up', 'ref', 'ref_downup'],
mean=[0., 0., 0.],
std=[255., 255., 255.]),
dict(
type='Flip',
keys=['lq', 'gt', 'lq_up'],
Expand Down Expand Up @@ -127,9 +132,14 @@
backend='pillow'),
dict(
type='Normalize',
keys=['lq', 'gt', 'lq_up', 'ref', 'ref_downup'],
keys=['lq', 'gt'],
mean=[127.5, 127.5, 127.5],
std=[127.5, 127.5, 127.5]),
dict(
type='Normalize',
keys=['lq_up', 'ref', 'ref_downup'],
mean=[0., 0., 0.],
std=[255., 255., 255.]),
dict(
type='ImageToTensor', keys=['lq', 'gt', 'lq_up', 'ref', 'ref_downup']),
dict(
Expand Down Expand Up @@ -170,9 +180,14 @@
backend='pillow'),
dict(
type='Normalize',
keys=['lq', 'lq_up', 'ref', 'ref_downup'],
keys=['lq'],
mean=[127.5, 127.5, 127.5],
std=[127.5, 127.5, 127.5]),
dict(
type='Normalize',
keys=['lq_up', 'ref', 'ref_downup'],
mean=[0., 0., 0.],
std=[255., 255., 255.]),
dict(type='ImageToTensor', keys=['lq', 'lq_up', 'ref', 'ref_downup']),
dict(
type='Collect',
Expand Down

0 comments on commit ed9041c

Please sign in to comment.