cascade-mask-rcnn_regnetx-3.2GF_fpn_ms-3x_coco.py 856 B

12345678910111213141516171819202122232425262728
  1. _base_ = [
  2. '../common/ms_3x_coco-instance.py',
  3. '../_base_/models/cascade-mask-rcnn_r50_fpn.py'
  4. ]
  5. model = dict(
  6. data_preprocessor=dict(
  7. # The mean and std are used in PyCls when training RegNets
  8. mean=[103.53, 116.28, 123.675],
  9. std=[57.375, 57.12, 58.395],
  10. bgr_to_rgb=False),
  11. backbone=dict(
  12. _delete_=True,
  13. type='RegNet',
  14. arch='regnetx_3.2gf',
  15. out_indices=(0, 1, 2, 3),
  16. frozen_stages=1,
  17. norm_cfg=dict(type='BN', requires_grad=True),
  18. norm_eval=True,
  19. style='pytorch',
  20. init_cfg=dict(
  21. type='Pretrained', checkpoint='open-mmlab://regnetx_3.2gf')),
  22. neck=dict(
  23. type='FPN',
  24. in_channels=[96, 192, 432, 1008],
  25. out_channels=256,
  26. num_outs=5))
  27. optim_wrapper = dict(optimizer=dict(weight_decay=0.00005))