Run this model with HF Jobs
Run PaddlePaddle/PP-DocLayout_plus-L_onnx on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/PaddlePaddle/PP-DocLayout_plus-L_onnx. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/PaddlePaddle/PP-DocLayout_plus-L_onnx on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use PaddlePaddle/PP-DocLayout_plus-L_onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PaddleOCR
How to use PaddlePaddle/PP-DocLayout_plus-L_onnx with PaddleOCR:
# 1. See https://www.paddlepaddle.org.cn/en/install to install paddlepaddle # 2. pip install paddleocr from paddleocr import LayoutDetection model = LayoutDetection(model_name="PP-DocLayout_plus-L_onnx") output = model.predict(input="path/to/image.png", batch_size=1) for res in output: res.print() res.save_to_img(save_path="./output/") res.save_to_json(save_path="./output/res.json") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse filesFiles changed (2)
- inference.onnxAdded+3
- inference.ymlAdded+123
123version https://git-lfs.github.com/spec/v1oid sha256:77afb2caa74dd13240d087d2eced91d7fcd2caebd16006a0a66162fc8707ff0esize 129736329123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123mode: paddledraw_threshold: 0.5metric: COCOuse_dynamic_shape: falseGlobal: model_name: PP-DocLayout_plus-Larch: DETRmin_subgraph_size: 3Preprocess:- interp: 2 keep_ratio: false target_size: - 800 - 800 type: Resize- mean: - 0.0 - 0.0 - 0.0 norm_type: none std: - 1.0 - 1.0 - 1.0 type: NormalizeImage- type: Permutelabel_list:- paragraph_title- image- text- number- abstract- content- figure_title- formula- table- reference- doc_title- footnote- header- algorithm- footer- seal- chart- formula_number- aside_text- reference_contentHpi: backend_configs: paddle_infer: trt_dynamic_shapes: &id001 im_shape: - - 1 - 2 - - 1 - 2 - - 8 - 2 image: - - 1 - 3 - 800 - 800 - - 1 - 3 - 800 - 800 - - 8 - 3 - 800 - 800 scale_factor: - - 1 - 2 - - 1 - 2 - - 8 - 2 trt_dynamic_shape_input_data: im_shape: - - 800 - 800 - - 800 - 800 - - 800 - 800 - 800 - 800 - 800 - 800 - 800 - 800 - 800 - 800 - 800 - 800 - 800 - 800 - 800 - 800 scale_factor: - - 2 - 2 - - 1 - 1 - - 0.67 - 0.67 - 0.67 - 0.67 - 0.67 - 0.67 - 0.67 - 0.67 - 0.67 - 0.67 - 0.67 - 0.67 - 0.67 - 0.67 - 0.67 - 0.67 tensorrt: dynamic_shapes: *id001inference.onnxAdded+3
inference.ymlAdded+123