schedule_2x.py 423 Bytes
Newer Older
liyinhao's avatar
liyinhao committed
1
# optimizer
zhangwenwei's avatar
zhangwenwei committed
2
# This schedule is mainly used by models on nuScenes dataset
liyinhao's avatar
liyinhao committed
3
4
5
6
7
8
9
10
11
12
13
14
optimizer = dict(type='AdamW', lr=0.001, weight_decay=0.01)
# max_norm=10 is better for SECOND
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
lr_config = dict(
    policy='step',
    warmup='linear',
    warmup_iters=1000,
    warmup_ratio=1.0 / 1000,
    step=[20, 23])
momentum_config = None
# runtime settings
total_epochs = 24