You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

atss_r50_fpn_1x_coco.py 1.9 kB

2 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. _base_ = [
  2. '../_base_/datasets/coco_detection.py',
  3. '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
  4. ]
  5. model = dict(
  6. type='ATSS',
  7. backbone=dict(
  8. type='ResNet',
  9. depth=50,
  10. num_stages=4,
  11. out_indices=(0, 1, 2, 3),
  12. frozen_stages=1,
  13. norm_cfg=dict(type='BN', requires_grad=True),
  14. norm_eval=True,
  15. style='pytorch',
  16. init_cfg=dict(type='Pretrained', checkpoint='torchvision://resnet50')),
  17. neck=dict(
  18. type='FPN',
  19. in_channels=[256, 512, 1024, 2048],
  20. out_channels=256,
  21. start_level=1,
  22. add_extra_convs='on_output',
  23. num_outs=5),
  24. bbox_head=dict(
  25. type='ATSSHead',
  26. num_classes=80,
  27. in_channels=256,
  28. stacked_convs=4,
  29. feat_channels=256,
  30. anchor_generator=dict(
  31. type='AnchorGenerator',
  32. ratios=[1.0],
  33. octave_base_scale=8,
  34. scales_per_octave=1,
  35. strides=[8, 16, 32, 64, 128]),
  36. bbox_coder=dict(
  37. type='DeltaXYWHBBoxCoder',
  38. target_means=[.0, .0, .0, .0],
  39. target_stds=[0.1, 0.1, 0.2, 0.2]),
  40. loss_cls=dict(
  41. type='FocalLoss',
  42. use_sigmoid=True,
  43. gamma=2.0,
  44. alpha=0.25,
  45. loss_weight=1.0),
  46. loss_bbox=dict(type='GIoULoss', loss_weight=2.0),
  47. loss_centerness=dict(
  48. type='CrossEntropyLoss', use_sigmoid=True, loss_weight=1.0)),
  49. # training and testing settings
  50. train_cfg=dict(
  51. assigner=dict(type='ATSSAssigner', topk=9),
  52. allowed_border=-1,
  53. pos_weight=-1,
  54. debug=False),
  55. test_cfg=dict(
  56. nms_pre=1000,
  57. min_bbox_size=0,
  58. score_thr=0.05,
  59. nms=dict(type='nms', iou_threshold=0.6),
  60. max_per_img=100))
  61. # optimizer
  62. optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001)

No Description

Contributors (3)