retinanet_pvt-t_fpn_1x_coco.py 627 B

123456789101112131415161718
  1. _base_ = [
  2. '../_base_/models/retinanet_r50_fpn.py',
  3. '../_base_/datasets/coco_detection.py',
  4. '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
  5. ]
  6. model = dict(
  7. type='RetinaNet',
  8. backbone=dict(
  9. _delete_=True,
  10. type='PyramidVisionTransformer',
  11. num_layers=[2, 2, 2, 2],
  12. init_cfg=dict(checkpoint='https://github.com/whai362/PVT/'
  13. 'releases/download/v2/pvt_tiny.pth')),
  14. neck=dict(in_channels=[64, 128, 320, 512]))
  15. # optimizer
  16. optim_wrapper = dict(
  17. optimizer=dict(
  18. _delete_=True, type='AdamW', lr=0.0001, weight_decay=0.0001))