faster_rcnn_hrnetv2p_w18.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. architecture: FasterRCNN
  2. pretrain_weights: https://paddledet.bj.bcebos.com/models/pretrained/HRNet_W18_C_pretrained.pdparams
  3. FasterRCNN:
  4. backbone: HRNet
  5. neck: HRFPN
  6. rpn_head: RPNHead
  7. bbox_head: BBoxHead
  8. # post process
  9. bbox_post_process: BBoxPostProcess
  10. HRNet:
  11. width: 18
  12. freeze_at: 0
  13. return_idx: [0, 1, 2, 3]
  14. HRFPN:
  15. out_channel: 256
  16. share_conv: false
  17. RPNHead:
  18. anchor_generator:
  19. aspect_ratios: [0.5, 1.0, 2.0]
  20. anchor_sizes: [[32], [64], [128], [256], [512]]
  21. strides: [4, 8, 16, 32, 64]
  22. rpn_target_assign:
  23. batch_size_per_im: 256
  24. fg_fraction: 0.5
  25. negative_overlap: 0.3
  26. positive_overlap: 0.7
  27. use_random: True
  28. train_proposal:
  29. min_size: 0.0
  30. nms_thresh: 0.7
  31. pre_nms_top_n: 2000
  32. post_nms_top_n: 2000
  33. topk_after_collect: True
  34. test_proposal:
  35. min_size: 0.0
  36. nms_thresh: 0.7
  37. pre_nms_top_n: 1000
  38. post_nms_top_n: 1000
  39. BBoxHead:
  40. head: TwoFCHead
  41. roi_extractor:
  42. resolution: 7
  43. sampling_ratio: 0
  44. aligned: True
  45. bbox_assigner: BBoxAssigner
  46. BBoxAssigner:
  47. batch_size_per_im: 512
  48. bg_thresh: 0.5
  49. fg_thresh: 0.5
  50. fg_fraction: 0.25
  51. use_random: True
  52. TwoFCHead:
  53. out_channel: 1024
  54. BBoxPostProcess:
  55. decode: RCNNBox
  56. nms:
  57. name: MultiClassNMS
  58. keep_top_k: 100
  59. score_threshold: 0.05
  60. nms_threshold: 0.5