layout_parsing.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. pipeline_name: layout_parsing
  2. input: https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/demo_paper.png
  3. use_doc_preprocessor: True
  4. use_common_ocr: True
  5. use_seal_recognition: True
  6. use_table_recognition: True
  7. SubModules:
  8. LayoutDetection:
  9. model_name: RT-DETR-H_layout_3cls
  10. model_dir: null
  11. batch_size: 1
  12. TableStructurePredictor:
  13. model_name: SLANet_plus
  14. model_dir: null
  15. batch_size: 1
  16. SubPipelines:
  17. DocPreprocessor:
  18. pipeline_name: doc_preprocessor
  19. use_doc_orientation_classify: True
  20. use_doc_unwarping: True
  21. SubModules:
  22. DocOrientationClassify:
  23. model_name: PP-LCNet_x1_0_doc_ori
  24. model_dir: null
  25. batch_size: 1
  26. DocUnwarping:
  27. model_name: UVDoc
  28. model_dir: null
  29. batch_size: 1
  30. CommonOCR:
  31. pipeline_name: OCR
  32. text_type: common
  33. SubModules:
  34. TextDetection:
  35. model_name: PP-OCRv4_server_det
  36. model_dir: null
  37. batch_size: 1
  38. TextRecognition:
  39. model_name: PP-OCRv4_server_rec
  40. model_dir: null
  41. batch_size: 1
  42. SealOCR:
  43. pipeline_name: OCR
  44. text_type: seal
  45. SubModules:
  46. TextDetection:
  47. model_name: PP-OCRv4_server_seal_det
  48. model_dir: null
  49. batch_size: 1
  50. TextRecognition:
  51. model_name: PP-OCRv4_server_rec
  52. model_dir: null
  53. batch_size: 1