formula_recognition.yaml 915 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. pipeline_name: formula_recognition
  2. use_layout_detection: True
  3. use_doc_preprocessor: True
  4. SubModules:
  5. LayoutDetection:
  6. module_name: layout_detection
  7. model_name: PP-DocLayout_plus-L
  8. model_dir: null
  9. threshold: 0.5
  10. layout_nms: True
  11. layout_unclip_ratio: 1.0
  12. layout_merge_bboxes_mode: "large"
  13. batch_size: 1
  14. FormulaRecognition:
  15. module_name: formula_recognition
  16. model_name: PP-FormulaNet_plus-M
  17. model_dir: null
  18. batch_size: 5
  19. SubPipelines:
  20. DocPreprocessor:
  21. pipeline_name: doc_preprocessor
  22. use_doc_orientation_classify: True
  23. use_doc_unwarping: True
  24. SubModules:
  25. DocOrientationClassify:
  26. module_name: doc_text_orientation
  27. model_name: PP-LCNet_x1_0_doc_ori
  28. model_dir: null
  29. batch_size: 1
  30. DocUnwarping:
  31. module_name: image_unwarping
  32. model_name: UVDoc
  33. model_dir: null
  34. batch_size: 1