faster-rcnn_r50-attn0010_fpn_1x_coco.py 403 B

12345678910111213
  1. _base_ = '../faster_rcnn/faster-rcnn_r50_fpn_1x_coco.py'
  2. model = dict(
  3. backbone=dict(plugins=[
  4. dict(
  5. cfg=dict(
  6. type='GeneralizedAttention',
  7. spatial_range=-1,
  8. num_heads=8,
  9. attention_type='0010',
  10. kv_stride=2),
  11. stages=(False, False, True, True),
  12. position='after_conv2')
  13. ]))