forked from open-mmlab/mmagic
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathiconvsr_2xb4_vimeo90k-bi.py
32 lines (29 loc) · 1.01 KB
/
iconvsr_2xb4_vimeo90k-bi.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
_base_ = '../basicvsr/basicvsr_2xb4_vimeo90k-bi.py'
scale = 4
experiment_name = 'iconvsr_2xb4_vimeo90k-bi'
work_dir = f'./work_dirs/{experiment_name}'
save_dir = './work_dirs/'
# model settings
model = dict(
type='BasicVSR',
generator=dict(
type='IconVSRNet',
mid_channels=64,
num_blocks=30,
keyframe_stride=5,
padding=3,
spynet_pretrained='https://download.openmmlab.com/mmediting/restorers/'
'basicvsr/spynet_20210409-c6c1bd09.pth',
edvr_pretrained='https://download.openmmlab.com/mmediting/restorers/'
'iconvsr/edvrm_vimeo90k_20210413-e40e99a8.pth'),
pixel_loss=dict(type='CharbonnierLoss', loss_weight=1.0, reduction='mean'),
train_cfg=dict(fix_iter=5000),
data_preprocessor=dict(
type='EditDataPreprocessor',
mean=[0., 0., 0.],
std=[255., 255., 255.],
input_view=(1, -1, 1, 1),
output_view=(1, -1, 1, 1),
))
default_hooks = dict(checkpoint=dict(out_dir=save_dir))
find_unused_parameters = True