Object Detection
Transformers
Safetensors
PaddleOCR
English
Chinese
multilingual
pp_doclayout_v3
PaddlePaddle
image-segmentation
ocr
layout
layout_detection
Instructions to use 123explorer/pp-doclayoutv3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 123explorer/pp-doclayoutv3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="123explorer/pp-doclayoutv3")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForObjectDetection processor = AutoImageProcessor.from_pretrained("123explorer/pp-doclayoutv3") model = AutoModelForObjectDetection.from_pretrained("123explorer/pp-doclayoutv3", device_map="auto") - PaddleOCR
How to use 123explorer/pp-doclayoutv3 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-doclayoutv3") 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
Download installed.json from 123explorer/pp-doclayoutv3: direct link, hf CLI and curl.
- Browser
- Download file 108 Bytes
-
https://huggingface.co/123explorer/pp-doclayoutv3/resolve/main/installed.json
- Command line
-
hf download hf://123explorer/pp-doclayoutv3/installed.json
-
curl -L -o installed.json https://huggingface.co/123explorer/pp-doclayoutv3/resolve/main/installed.json
108 Bytes
| {"model": "PaddlePaddle/PP-DocLayoutV3_safetensors", "revision": "e4f489dc536556fc1be02b973ba06756e0d4a2ac"} |