Object Detection
Transformers
Safetensors
PaddleOCR
English
Chinese
multilingual
pp_doclayout_v4
PaddlePaddle
ocr
layout
layout_detection
reading_order
Run this model with HF Jobs
Run PaddlePaddle/PP-DocLayoutV4_safetensors 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-DocLayoutV4_safetensors. 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-DocLayoutV4_safetensors 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-DocLayoutV4_safetensors with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PaddlePaddle/PP-DocLayoutV4_safetensors with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="PaddlePaddle/PP-DocLayoutV4_safetensors")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForObjectDetection processor = AutoImageProcessor.from_pretrained("PaddlePaddle/PP-DocLayoutV4_safetensors") model = AutoModelForObjectDetection.from_pretrained("PaddlePaddle/PP-DocLayoutV4_safetensors", device_map="auto") - PaddleOCR
How to use PaddlePaddle/PP-DocLayoutV4_safetensors 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-DocLayoutV4_safetensors") 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
Commit History
Today
-
Update README.md
Verified signature129c3f7 -
Update README.md
Verified signaturec4e0ad5
Yesterday
-
Update README.md
Verified signatureba93fed -
Update README.md
Verified signatureb35df7f
4 days ago
-
Update PP-DocLayoutV4 with epoch 30 deformation weights
Verified signatureReplace the model with the epoch 30 Paddle checkpoint converted to safetensors. Record the S2R settings and enable page-deformation output in the model config.22c93f7
-
Update safetensors from latest PP-DocLayoutV4 weights
Verified signatureConverted from latest pp-doclayout-v4.pdparams. Source SHA256: 5e1cd2bc3f106929d7809b88aed0abda88aecc3349ce242b7dafa870a81c44b4 Model SHA256: cff7c0aeaec64cc502bfcc8c0bbcedec95180a74738bad5440e246470d933a21 Validated all 931 tensors after reload and sample image inference.c8e5640
-
Update geometry-enabled PP-DocLayoutV4 checkpoint
Verified signatureUpdate model weights, configuration, image processor configuration, and original Paddle inference metadata together. Validated with local Transformers end-to-end inference and Paddle comparisons.9cfb46f
-
Update checkpoint with all decoder auxiliary heads
Verified signature0ad9067
-
Upload model.safetensors with huggingface_hub
Verified signature3d732b4 -
Update config.json
Verified signature4158cc4
-
Upload model.safetensors with huggingface_hub
Verified signature751331b -
Upload config.json with huggingface_hub
Verified signature64a7817
-
Re-convert from 126.pdparams with current modeling code
Parameter names in the previous upload predated the module renames in transformers (encoder.encoder -> encoder.aifi, FFN moved under mlp, out_proj -> o_proj), so 52 tensors were silently left randomly initialized on load. Weight values are unchanged and bit-exact; only the keys, the missing batch norm counters and the config/preprocessor field names are updated.8251075 -
Upload config.json with huggingface_hub
Verified signatureca261de
-
Upload folder using huggingface_hub
Verified signature912cfc2 -
initial commit
Verified signature3d753a4