“c455c6987967064923bb42eab1e8bfa689cf7265”上不存在“src/git@gitcode.net:qq_37101384/tdengine.git”
retinanet_x101_vd_64x4d_fpn_1x.yml 1.6 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
architecture: RetinaNet
max_iters: 180000
use_gpu: true
pretrain_weights: https://paddle-imagenet-models-name.bj.bcebos.com/ResNeXt101_vd_64x4d_pretrained.tar
weights: output/retinanet_x101_vd_64x4d_fpn_1x/model_final
log_smooth_window: 20
log_iter: 20
snapshot_iter: 30000
metric: COCO
save_dir: output
num_classes: 81

RetinaNet:
  backbone: ResNeXt
  fpn: FPN
  retina_head: RetinaHead

ResNeXt:
  depth: 101
  feature_maps: [3, 4, 5]
  freeze_at: 2
  group_width: 4
  groups: 64
  norm_type: bn
  variant: d

FPN:
  max_level: 7
  min_level: 3
  num_chan: 256
  spatial_scale: [0.03125, 0.0625, 0.125]
  has_extra_convs: true

RetinaHead:
  num_convs_per_octave: 4
  num_chan: 256
  max_level: 7
  min_level: 3
  prior_prob: 0.01
  base_scale: 4
  num_scales_per_octave: 3
  anchor_generator:
    aspect_ratios: [1.0, 2.0, 0.5]
    variance: [1.0, 1.0, 1.0, 1.0]
  target_assign:
    positive_overlap: 0.5
    negative_overlap: 0.4
  gamma: 2.0
  alpha: 0.25
  sigma: 3.0151134457776365
  output_decoder:
    score_thresh: 0.05
    nms_thresh: 0.5
    pre_nms_top_n: 1000
    detections_per_im: 100
    nms_eta: 1.0

LearningRate:
  base_lr: 0.005
  schedulers:
  - !PiecewiseDecay
    gamma: 0.1
    milestones: [120000, 160000]
  - !LinearWarmup
    start_factor: 0.1
    steps: 1000

OptimizerBuilder:
  optimizer:
    momentum: 0.9
    type: Momentum
  regularizer:
    factor: 0.0001
    type: L2

76 77
_READER_: 'faster_fpn_reader.yml'
TrainReader:
78 79 80 81
  batch_transforms:
  - !PadBatch
    pad_to_stride: 128

82
EvalReader:
83 84 85 86
  batch_transforms:
  - !PadBatch
    pad_to_stride: 128

87
TestReader:
88 89 90
  batch_transforms:
  - !PadBatch
    pad_to_stride: 128