seg-cosine-150e.py 749 Bytes
Newer Older
1
2
# optimizer
# This schedule is mainly used on S3DIS dataset in segmentation task
3
4
5
6
7
8
9
10
11
12
13
14
15
16
optim_wrapper = dict(
    type='OptimWrapper',
    optimizer=dict(type='SGD', lr=0.2, momentum=0.9, weight_decay=0.0001),
    clip_grad=None)

param_scheduler = [
    dict(
        type='CosineAnnealingLR',
        T_max=150,
        eta_min=0.002,
        by_epoch=True,
        begin=0,
        end=150)
]
17
18

# runtime settings
19
20
train_cfg = dict(by_epoch=True, max_epochs=150, val_interval=1)
val_cfg = dict()
21
test_cfg = dict()
22
23
24
25
26
27

# Default setting for scaling LR automatically
#   - `enable` means enable scaling LR automatically
#       or not by default.
#   - `base_batch_size` = (8 GPUs) x (8 samples per GPU).
auto_scale_lr = dict(enable=False, base_batch_size=64)