"vscode:/vscode.git/clone" did not exist on "4a5356049c6cb77765c0c9326bf0536260b25fc6"
schedule_3x.py 647 Bytes
Newer Older
liyinhao's avatar
liyinhao committed
1
# optimizer
zhangwenwei's avatar
zhangwenwei committed
2
3
# This schedule is mainly used by models on indoor dataset,
# e.g., VoteNet on SUNRGBD and ScanNet
liyinhao's avatar
liyinhao committed
4
lr = 0.008  # max learning rate
jshilong's avatar
jshilong committed
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
optim_wrapper = dict(
    type='OptimWrapper',
    optimizer=dict(type='AdamW', lr=lr, weight_decay=0.01),
    clip_grad=dict(max_norm=10, norm_type=2),
)

# training schedule for 1x
train_cfg = dict(type='EpochBasedTrainLoop', max_epochs=36, val_interval=1)
val_cfg = dict(type='ValLoop')
test_cfg = dict(type='TestLoop')

# learning rate
param_scheduler = [
    dict(
        type='MultiStepLR',
        begin=0,
        end=36,
        by_epoch=True,
        milestones=[24, 32],
        gamma=0.1)
]