rtmdet-ins_x_8xb16-300e_coco.py 795 B

12345678910111213141516171819202122232425262728293031
  1. _base_ = './rtmdet-ins_l_8xb32-300e_coco.py'
  2. model = dict(
  3. backbone=dict(deepen_factor=1.33, widen_factor=1.25),
  4. neck=dict(
  5. in_channels=[320, 640, 1280], out_channels=320, num_csp_blocks=4),
  6. bbox_head=dict(in_channels=320, feat_channels=320))
  7. base_lr = 0.002
  8. # optimizer
  9. optim_wrapper = dict(optimizer=dict(lr=base_lr))
  10. # learning rate
  11. param_scheduler = [
  12. dict(
  13. type='LinearLR',
  14. start_factor=1.0e-5,
  15. by_epoch=False,
  16. begin=0,
  17. end=1000),
  18. dict(
  19. # use cosine lr from 150 to 300 epoch
  20. type='CosineAnnealingLR',
  21. eta_min=base_lr * 0.05,
  22. begin=_base_.max_epochs // 2,
  23. end=_base_.max_epochs,
  24. T_max=_base_.max_epochs // 2,
  25. by_epoch=True,
  26. convert_to_iter_based=True),
  27. ]