paa_r50_fpn_ms-3x_coco.py 777 B

1234567891011121314151617181920212223242526272829
  1. _base_ = './paa_r50_fpn_1x_coco.py'
  2. max_epochs = 36
  3. # learning rate
  4. param_scheduler = [
  5. dict(
  6. type='LinearLR', start_factor=0.001, by_epoch=False, begin=0, end=500),
  7. dict(
  8. type='MultiStepLR',
  9. begin=0,
  10. end=max_epochs,
  11. by_epoch=True,
  12. milestones=[28, 34],
  13. gamma=0.1)
  14. ]
  15. # training schedule for 3x
  16. train_cfg = dict(max_epochs=max_epochs)
  17. train_pipeline = [
  18. dict(type='LoadImageFromFile', backend_args={{_base_.backend_args}}),
  19. dict(type='LoadAnnotations', with_bbox=True),
  20. dict(
  21. type='RandomResize', scale=[(1333, 640), (1333, 800)],
  22. keep_ratio=True),
  23. dict(type='RandomFlip', prob=0.5),
  24. dict(type='PackDetInputs')
  25. ]
  26. train_dataloader = dict(dataset=dict(pipeline=train_pipeline))