retinanet_r18_fpn_1xb8-1x_coco.py 797 B

123456789101112131415161718192021222324
  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. # data
  7. train_dataloader = dict(batch_size=8)
  8. # model
  9. model = dict(
  10. backbone=dict(
  11. depth=18,
  12. init_cfg=dict(type='Pretrained', checkpoint='torchvision://resnet18')),
  13. neck=dict(in_channels=[64, 128, 256, 512]))
  14. # Note: If the learning rate is set to 0.0025, the mAP will be 32.4.
  15. optim_wrapper = dict(
  16. optimizer=dict(type='SGD', lr=0.005, momentum=0.9, weight_decay=0.0001))
  17. # TODO: support auto scaling lr
  18. # NOTE: `auto_scale_lr` is for automatically scaling LR,
  19. # USER SHOULD NOT CHANGE ITS VALUES.
  20. # base_batch_size = (1 GPUs) x (8 samples per GPU)
  21. # auto_scale_lr = dict(base_batch_size=8)