retinanet_r18_fpn_1x_coco.py 682 B

1234567891011121314151617181920
  1. _base_ = [
  2. '../_base_/models/retinanet_r50_fpn.py',
  3. '../_base_/datasets/coco_detection.py',
  4. '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
  5. ]
  6. # model
  7. model = dict(
  8. backbone=dict(
  9. depth=18,
  10. init_cfg=dict(type='Pretrained', checkpoint='torchvision://resnet18')),
  11. neck=dict(in_channels=[64, 128, 256, 512]))
  12. optim_wrapper = dict(
  13. optimizer=dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001))
  14. # TODO: support auto scaling lr
  15. # NOTE: `auto_scale_lr` is for automatically scaling LR,
  16. # USER SHOULD NOT CHANGE ITS VALUES.
  17. # base_batch_size = (8 GPUs) x (2 samples per GPU)
  18. # auto_scale_lr = dict(base_batch_size=16)