ga-retinanet_r101-caffe_fpn_ms-2x.py 869 B

12345678910111213141516171819202122232425262728293031323334
  1. _base_ = './ga-retinanet_r101-caffe_fpn_1x_coco.py'
  2. train_pipeline = [
  3. dict(type='LoadImageFromFile', backend_args={{_base_.backend_args}}),
  4. dict(type='LoadAnnotations', with_bbox=True),
  5. dict(
  6. type='RandomResize', scale=[(1333, 480), (1333, 960)],
  7. keep_ratio=True),
  8. dict(type='RandomFlip', prob=0.5),
  9. dict(type='PackDetInputs')
  10. ]
  11. train_dataloader = dict(dataset=dict(pipeline=train_pipeline))
  12. # learning policy
  13. max_epochs = 24
  14. train_cfg = dict(
  15. type='EpochBasedTrainLoop', max_epochs=max_epochs, val_interval=1)
  16. # learning rate
  17. param_scheduler = [
  18. dict(
  19. type='LinearLR',
  20. start_factor=1.0 / 3.0,
  21. by_epoch=False,
  22. begin=0,
  23. end=500),
  24. dict(
  25. type='MultiStepLR',
  26. begin=0,
  27. end=max_epochs,
  28. by_epoch=True,
  29. milestones=[16, 22],
  30. gamma=0.1)
  31. ]