htc_x101-32x4d_fpn_16xb1-20e_coco.py 828 B

1234567891011121314151617181920212223242526272829303132
  1. _base_ = './htc_r50_fpn_1x_coco.py'
  2. model = dict(
  3. backbone=dict(
  4. type='ResNeXt',
  5. depth=101,
  6. groups=32,
  7. base_width=4,
  8. num_stages=4,
  9. out_indices=(0, 1, 2, 3),
  10. frozen_stages=1,
  11. norm_cfg=dict(type='BN', requires_grad=True),
  12. norm_eval=True,
  13. style='pytorch',
  14. init_cfg=dict(
  15. type='Pretrained', checkpoint='open-mmlab://resnext101_32x4d')))
  16. train_dataloader = dict(batch_size=1, num_workers=1)
  17. # learning policy
  18. max_epochs = 20
  19. param_scheduler = [
  20. dict(
  21. type='LinearLR', start_factor=0.001, by_epoch=False, begin=0, end=500),
  22. dict(
  23. type='MultiStepLR',
  24. begin=0,
  25. end=max_epochs,
  26. by_epoch=True,
  27. milestones=[16, 19],
  28. gamma=0.1)
  29. ]
  30. train_cfg = dict(max_epochs=max_epochs)