mmpretrain/configs/_base_/schedules/imagenet_bs256.py

17 lines
497 B
Python
Raw Normal View History

# optimizer
optim_wrapper = dict(
optimizer=dict(type='SGD', lr=0.1, momentum=0.9, weight_decay=0.0001))
# learning policy
2022-05-23 17:31:57 +08:00
param_scheduler = dict(
type='MultiStepLR', by_epoch=True, milestones=[30, 60, 90], gamma=0.1)
# train, val, test setting
2022-07-12 16:10:59 +08:00
train_cfg = dict(by_epoch=True, max_epochs=100, val_interval=1)
val_cfg = dict()
2022-05-23 17:31:57 +08:00
test_cfg = dict()
2022-07-15 15:20:17 +08:00
# NOTE: `auto_scale_lr` is for automatically scaling LR,
# based on the actual training batch size.
auto_scale_lr = dict(base_batch_size=256)