forked from alibaba/EasyCV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deitiii_schedule.py
41 lines (35 loc) · 952 Bytes
/
deitiii_schedule.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
_base_ = 'configs/base.py'
log_config = dict(
interval=10,
hooks=[dict(type='TextLoggerHook'),
dict(type='TensorboardLoggerHook')])
# additional hooks
custom_hooks = []
# optimizer
optimizer = dict(
type='Lamb',
lr=0.003,
weight_decay=0.05,
eps=1e-8,
paramwise_options={
'cls_token': dict(weight_decay=0.),
'pos_embed': dict(weight_decay=0.),
'bias': dict(weight_decay=0.),
'norm': dict(weight_decay=0.),
'gamma_1': dict(weight_decay=0.),
'gamma_2': dict(weight_decay=0.),
})
optimizer_config = dict(grad_clip=None, update_interval=1)
lr_config = dict(
policy='CosineAnnealingWarmupByEpoch',
by_epoch=True,
min_lr_ratio=0.00001 / 0.003,
warmup='linear',
warmup_by_epoch=True,
warmup_iters=5,
warmup_ratio=0.000001 / 0.003,
)
checkpoint_config = dict(interval=10)
# runtime settings
total_epochs = 800
ema = dict(decay=0.99996)