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.

ssd300.py 1.7 kB

2 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # model settings
  2. input_size = 300
  3. model = dict(
  4. type='SingleStageDetector',
  5. backbone=dict(
  6. type='SSDVGG',
  7. depth=16,
  8. with_last_pool=False,
  9. ceil_mode=True,
  10. out_indices=(3, 4),
  11. out_feature_indices=(22, 34),
  12. init_cfg=dict(
  13. type='Pretrained', checkpoint='open-mmlab://vgg16_caffe')),
  14. neck=dict(
  15. type='SSDNeck',
  16. in_channels=(512, 1024),
  17. out_channels=(512, 1024, 512, 256, 256, 256),
  18. level_strides=(2, 2, 1, 1),
  19. level_paddings=(1, 1, 0, 0),
  20. l2_norm_scale=20),
  21. bbox_head=dict(
  22. type='SSDHead',
  23. in_channels=(512, 1024, 512, 256, 256, 256),
  24. num_classes=80,
  25. anchor_generator=dict(
  26. type='SSDAnchorGenerator',
  27. scale_major=False,
  28. input_size=input_size,
  29. basesize_ratio_range=(0.15, 0.9),
  30. strides=[8, 16, 32, 64, 100, 300],
  31. ratios=[[2], [2, 3], [2, 3], [2, 3], [2], [2]]),
  32. bbox_coder=dict(
  33. type='DeltaXYWHBBoxCoder',
  34. target_means=[.0, .0, .0, .0],
  35. target_stds=[0.1, 0.1, 0.2, 0.2])),
  36. # model training and testing settings
  37. train_cfg=dict(
  38. assigner=dict(
  39. type='MaxIoUAssigner',
  40. pos_iou_thr=0.5,
  41. neg_iou_thr=0.5,
  42. min_pos_iou=0.,
  43. ignore_iof_thr=-1,
  44. gt_max_assign_all=False),
  45. smoothl1_beta=1.,
  46. allowed_border=-1,
  47. pos_weight=-1,
  48. neg_pos_ratio=3,
  49. debug=False),
  50. test_cfg=dict(
  51. nms_pre=1000,
  52. nms=dict(type='nms', iou_threshold=0.45),
  53. min_bbox_size=0,
  54. score_thr=0.02,
  55. max_per_img=200))
  56. cudnn_benchmark = True

No Description

Contributors (1)