gfl_r101vd_fpn_mstrain_2x_coco.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. _BASE_: [
  2. '../datasets/coco_detection.yml',
  3. '../runtime.yml',
  4. '_base_/gfl_r50_fpn.yml',
  5. '_base_/optimizer_1x.yml',
  6. '_base_/gfl_reader.yml',
  7. ]
  8. pretrain_weights: https://paddledet.bj.bcebos.com/models/pretrained/ResNet101_vd_pretrained.pdparams
  9. weights: output/gfl_r101vd_fpn_mstrain_2x_coco/model_final
  10. find_unused_parameters: True
  11. use_ema: true
  12. ema_decay: 0.9998
  13. ResNet:
  14. depth: 101
  15. variant: d
  16. norm_type: bn
  17. freeze_at: 0
  18. return_idx: [1,2,3]
  19. num_stages: 4
  20. epoch: 24
  21. LearningRate:
  22. base_lr: 0.01
  23. schedulers:
  24. - !PiecewiseDecay
  25. gamma: 0.1
  26. milestones: [16, 22]
  27. - !LinearWarmup
  28. start_factor: 0.001
  29. steps: 500
  30. TrainReader:
  31. sample_transforms:
  32. - Decode: {}
  33. - RandomResize: {target_size: [[480, 1333], [512, 1333], [544, 1333], [576, 1333], [608, 1333], [640, 1333], [672, 1333], [704, 1333], [736, 1333], [768, 1333], [800, 1333]], interp: 2, keep_ratio: True}
  34. - RandomFlip: {prob: 0.5}
  35. - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  36. - Permute: {}
  37. batch_transforms:
  38. - PadBatch: {pad_to_stride: 32}
  39. - Gt2GFLTarget:
  40. downsample_ratios: [8, 16, 32, 64, 128]
  41. grid_cell_scale: 8