forked from open-mmlab/mmagic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
edvrm_wotsa_8xb4-600k_reds.py
42 lines (38 loc) · 1.08 KB
/
edvrm_wotsa_8xb4-600k_reds.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
38
39
40
41
42
_base_ = '../_base_/models/base_edvr.py'
experiment_name = 'edvrm_wotsa_8xb4-600k_reds'
save_dir = './work_dirs'
work_dir = f'./work_dirs/{experiment_name}'
# model settings
model = dict(
type='EDVR',
generator=dict(
type='EDVRNet',
in_channels=3,
out_channels=3,
mid_channels=64,
num_frames=5,
deform_groups=8,
num_blocks_extraction=5,
num_blocks_reconstruction=10,
center_frame_idx=2,
with_tsa=False),
pixel_loss=dict(type='CharbonnierLoss', loss_weight=1.0, reduction='sum'),
train_cfg=dict(tsa_iter=5000),
data_preprocessor=dict(
type='DataPreprocessor',
mean=[0., 0., 0.],
std=[255., 255., 255.],
))
# optimizer
optim_wrapper = dict(
constructor='DefaultOptimWrapperConstructor',
type='OptimWrapper',
optimizer=dict(type='Adam', lr=4e-4, betas=(0.9, 0.999)),
)
# learning policy
param_scheduler = dict(
type='CosineRestartLR',
by_epoch=False,
periods=[150000, 150000, 150000, 150000],
restart_weights=[1, 0.5, 0.5, 0.5],
eta_min=1e-7)