yolof_r50_c5.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. architecture: YOLOF
  2. find_unused_parameters: True
  3. pretrain_weights: https://paddledet.bj.bcebos.com/models/pretrained/ResNet50_cos_pretrained.pdparams
  4. YOLOF:
  5. backbone: ResNet
  6. neck: DilatedEncoder
  7. head: YOLOFHead
  8. ResNet:
  9. depth: 50
  10. variant: b # resnet-va in paper
  11. freeze_at: 0 # res2
  12. return_idx: [3] # only res5 feature
  13. lr_mult_list: [0.3333, 0.3333, 0.3333, 0.3333]
  14. DilatedEncoder:
  15. in_channels: [2048]
  16. out_channels: [512]
  17. block_mid_channels: 128
  18. num_residual_blocks: 4
  19. block_dilations: [2, 4, 6, 8]
  20. YOLOFHead:
  21. conv_feat:
  22. name: YOLOFFeat
  23. feat_in: 512
  24. feat_out: 512
  25. num_cls_convs: 2
  26. num_reg_convs: 4
  27. norm_type: bn
  28. anchor_generator:
  29. name: AnchorGenerator
  30. anchor_sizes: [[32, 64, 128, 256, 512]]
  31. aspect_ratios: [1.0]
  32. strides: [32]
  33. bbox_assigner:
  34. name: UniformAssigner
  35. pos_ignore_thr: 0.15
  36. neg_ignore_thr: 0.7
  37. match_times: 4
  38. loss_class:
  39. name: FocalLoss
  40. gamma: 2.0
  41. alpha: 0.25
  42. loss_bbox:
  43. name: GIoULoss
  44. nms:
  45. name: MultiClassNMS
  46. nms_top_k: 1000
  47. keep_top_k: 100
  48. score_threshold: 0.05
  49. nms_threshold: 0.6