cascade-mask-rcnn_convnext-s-p4-w7_fpn_4conv1fc-giou_amp-ms-crop-3x_coco.py 965 B

1234567891011121314151617181920212223242526
  1. _base_ = './cascade-mask-rcnn_convnext-t-p4-w7_fpn_4conv1fc-giou_amp-ms-crop-3x_coco.py' # noqa
  2. # TODO: delete custom_imports after mmcls supports auto import
  3. # please install mmcls>=1.0
  4. # import mmcls.models to trigger register_module in mmcls
  5. custom_imports = dict(imports=['mmcls.models'], allow_failed_imports=False)
  6. checkpoint_file = 'https://download.openmmlab.com/mmclassification/v0/convnext/downstream/convnext-small_3rdparty_32xb128-noema_in1k_20220301-303e75e3.pth' # noqa
  7. model = dict(
  8. backbone=dict(
  9. _delete_=True,
  10. type='mmcls.ConvNeXt',
  11. arch='small',
  12. out_indices=[0, 1, 2, 3],
  13. drop_path_rate=0.6,
  14. layer_scale_init_value=1.0,
  15. gap_before_final_norm=False,
  16. init_cfg=dict(
  17. type='Pretrained', checkpoint=checkpoint_file,
  18. prefix='backbone.')))
  19. optim_wrapper = dict(paramwise_cfg={
  20. 'decay_rate': 0.7,
  21. 'decay_type': 'layer_wise',
  22. 'num_layers': 12
  23. })