libra-faster-rcnn_r50_fpn_1x_coco.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. _base_ = '../faster_rcnn/faster-rcnn_r50_fpn_1x_coco.py'
  2. # model settings
  3. model = dict(
  4. neck=[
  5. dict(
  6. type='FPN',
  7. in_channels=[256, 512, 1024, 2048],
  8. out_channels=256,
  9. num_outs=5),
  10. dict(
  11. type='BFP',
  12. in_channels=256,
  13. num_levels=5,
  14. refine_level=2,
  15. refine_type='non_local')
  16. ],
  17. roi_head=dict(
  18. bbox_head=dict(
  19. loss_bbox=dict(
  20. _delete_=True,
  21. type='BalancedL1Loss',
  22. alpha=0.5,
  23. gamma=1.5,
  24. beta=1.0,
  25. loss_weight=1.0))),
  26. # model training and testing settings
  27. train_cfg=dict(
  28. rpn=dict(sampler=dict(neg_pos_ub=5), allowed_border=-1),
  29. rcnn=dict(
  30. sampler=dict(
  31. _delete_=True,
  32. type='CombinedSampler',
  33. num=512,
  34. pos_fraction=0.25,
  35. add_gt_as_proposals=True,
  36. pos_sampler=dict(type='InstanceBalancedPosSampler'),
  37. neg_sampler=dict(
  38. type='IoUBalancedNegSampler',
  39. floor_thr=-1,
  40. floor_fraction=0,
  41. num_bins=3)))))