cascade-rcnn_r50_fpn_8xb8-amp-lsj-200e_coco.py 819 B

1234567891011121314151617181920212223
  1. _base_ = [
  2. '../_base_/models/cascade-rcnn_r50_fpn.py',
  3. '../common/lsj-200e_coco-detection.py'
  4. ]
  5. image_size = (1024, 1024)
  6. batch_augments = [dict(type='BatchFixedSizePad', size=image_size)]
  7. # disable allowed_border to avoid potential errors.
  8. model = dict(
  9. data_preprocessor=dict(batch_augments=batch_augments),
  10. train_cfg=dict(rpn=dict(allowed_border=-1)))
  11. train_dataloader = dict(batch_size=8, num_workers=4)
  12. # Enable automatic-mixed-precision training with AmpOptimWrapper.
  13. optim_wrapper = dict(
  14. type='AmpOptimWrapper',
  15. optimizer=dict(
  16. type='SGD', lr=0.02 * 4, momentum=0.9, weight_decay=0.00004))
  17. # NOTE: `auto_scale_lr` is for automatically scaling LR,
  18. # USER SHOULD NOT CHANGE ITS VALUES.
  19. # base_batch_size = (8 GPUs) x (8 samples per GPU)
  20. auto_scale_lr = dict(base_batch_size=64)