mask-rcnn_r50_fpn_8xb8-amp-lsj-200e_coco.py 730 B

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