decoupled-solo_r50_fpn_3x_coco.py 775 B

12345678910111213141516171819202122232425
  1. _base_ = './solo_r50_fpn_3x_coco.py'
  2. # model settings
  3. model = dict(
  4. mask_head=dict(
  5. type='DecoupledSOLOHead',
  6. num_classes=80,
  7. in_channels=256,
  8. stacked_convs=7,
  9. feat_channels=256,
  10. strides=[8, 8, 16, 32, 32],
  11. scale_ranges=((1, 96), (48, 192), (96, 384), (192, 768), (384, 2048)),
  12. pos_scale=0.2,
  13. num_grids=[40, 36, 24, 16, 12],
  14. cls_down_index=0,
  15. loss_mask=dict(
  16. type='DiceLoss', use_sigmoid=True, activate=False,
  17. loss_weight=3.0),
  18. loss_cls=dict(
  19. type='FocalLoss',
  20. use_sigmoid=True,
  21. gamma=2.0,
  22. alpha=0.25,
  23. loss_weight=1.0),
  24. norm_cfg=dict(type='GN', num_groups=32, requires_grad=True)))