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.

paa_r50_fpn_1x_coco.py 2.1 kB

2 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. _base_ = [
  2. '../_base_/datasets/coco_detection.py',
  3. '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
  4. ]
  5. model = dict(
  6. type='PAA',
  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='PAAHead',
  26. reg_decoded_bbox=True,
  27. score_voting=True,
  28. topk=9,
  29. num_classes=80,
  30. in_channels=256,
  31. stacked_convs=4,
  32. feat_channels=256,
  33. anchor_generator=dict(
  34. type='AnchorGenerator',
  35. ratios=[1.0],
  36. octave_base_scale=8,
  37. scales_per_octave=1,
  38. strides=[8, 16, 32, 64, 128]),
  39. bbox_coder=dict(
  40. type='DeltaXYWHBBoxCoder',
  41. target_means=[.0, .0, .0, .0],
  42. target_stds=[0.1, 0.1, 0.2, 0.2]),
  43. loss_cls=dict(
  44. type='FocalLoss',
  45. use_sigmoid=True,
  46. gamma=2.0,
  47. alpha=0.25,
  48. loss_weight=1.0),
  49. loss_bbox=dict(type='GIoULoss', loss_weight=1.3),
  50. loss_centerness=dict(
  51. type='CrossEntropyLoss', use_sigmoid=True, loss_weight=0.5)),
  52. # training and testing settings
  53. train_cfg=dict(
  54. assigner=dict(
  55. type='MaxIoUAssigner',
  56. pos_iou_thr=0.1,
  57. neg_iou_thr=0.1,
  58. min_pos_iou=0,
  59. ignore_iof_thr=-1),
  60. allowed_border=-1,
  61. pos_weight=-1,
  62. debug=False),
  63. test_cfg=dict(
  64. nms_pre=1000,
  65. min_bbox_size=0,
  66. score_thr=0.05,
  67. nms=dict(type='nms', iou_threshold=0.6),
  68. max_per_img=100))
  69. # optimizer
  70. optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001)

No Description

Contributors (3)