det_r50_vd_sast_icdar15.yml 1.2 KB
Newer Older
L
licx 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Global:
  algorithm: SAST
  use_gpu: true
  epoch_num: 2000
  log_smooth_window: 20
  print_batch_step: 2
  save_model_dir: ./output/det_sast/
  save_epoch_step: 20
  eval_batch_step: 5000
  train_batch_size_per_card: 8
  test_batch_size_per_card: 8
  image_shape: [3, 512, 512]
  reader_yml: ./configs/det/det_sast_icdar15_reader.yml
  pretrain_weights: ./pretrain_models/ResNet50_vd_ssld_pretrained/
  save_res_path: ./output/det_sast/predicts_sast.txt
  checkpoints: 
  save_inference_dir:
18
  infer_img:
L
licx 已提交
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

Architecture:
  function: ppocr.modeling.architectures.det_model,DetModel

Backbone:
  function: ppocr.modeling.backbones.det_resnet_vd_sast,ResNet
  layers: 50

Head:
  function: ppocr.modeling.heads.det_sast_head,SASTHead
  model_name: large
  only_fpn_up: False
#   with_cab: False
  with_cab: True

Loss:
  function: ppocr.modeling.losses.det_sast_loss,SASTLoss

Optimizer:
  function: ppocr.optimizer,RMSProp
  base_lr: 0.001
  decay:
    function: piecewise_decay
    boundaries: [30000, 50000, 80000, 100000, 150000]
    decay_rate: 0.3

PostProcess:
  function: ppocr.postprocess.sast_postprocess,SASTPostProcess
  score_thresh: 0.5
  sample_pts_num: 2
  nms_thresh: 0.2
  expand_scale: 1.0
  shrink_ratio_of_width: 0.3