forked from open-mmlab/mmagic
-
Notifications
You must be signed in to change notification settings - Fork 1
/
basicvsr-pp_c64n7_4xb2-300k_vimeo90k-bd.py
37 lines (31 loc) · 1.24 KB
/
basicvsr-pp_c64n7_4xb2-300k_vimeo90k-bd.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
33
34
35
36
37
_base_ = '../basicvsr/basicvsr_2xb4_vimeo90k-bd.py'
experiment_name = 'basicvsr-pp_c64n7_4xb2-300k_vimeo90k-bd'
work_dir = f'./work_dirs/{experiment_name}'
save_dir = './work_dirs'
# load_from = 'https://download.openmmlab.com/mmediting/restorers/basicvsr_plusplus/basicvsr_plusplus_c64n7_8x1_600k_reds4_20210217-db622b2f.pth' # noqa
# model settings
model = dict(
type='BasicVSR',
generator=dict(
type='BasicVSRPlusPlusNet',
mid_channels=64,
num_blocks=7,
is_low_res_input=True,
spynet_pretrained='https://download.openmmlab.com/mmediting/restorers/'
'basicvsr/spynet_20210409-c6c1bd09.pth'),
pixel_loss=dict(type='CharbonnierLoss', loss_weight=1.0, reduction='mean'),
train_cfg=dict(fix_iter=-1),
data_preprocessor=dict(
type='DataPreprocessor',
mean=[0., 0., 0.],
std=[255., 255., 255.],
))
train_dataloader = dict(num_workers=6, batch_size=2)
# optimizer
optim_wrapper = dict(
constructor='DefaultOptimWrapperConstructor',
type='OptimWrapper',
optimizer=dict(type='Adam', lr=1e-4, betas=(0.9, 0.99)),
paramwise_cfg=dict(custom_keys={'spynet': dict(lr_mult=0.25)}))
default_hooks = dict(checkpoint=dict(out_dir=save_dir))
find_unused_parameters = True