A layout block localization model trained on a self-built dataset containing Chinese and English papers, PPT, multi-layout magazines, contracts, books, exams, ancient books and research reports using RT-DETR-L. The layout detection model includes 1 category: Region.
Model
mAP(0.5) (%)
PP-DocBlockLayout
95.9
Note
: the evaluation set of the above precision indicators is the self built version sub area detection data set, including Chinese and English papers, magazines, newspapers, research reports PPT、 1000 document type pictures such as test papers and textbooks.
Quick Start
Installation
PaddlePaddle
Please refer to the following commands to install PaddlePaddle using pip:
# for CUDA11.8
python -m pip install paddlepaddle-gpu==3.0.0 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/
# for CUDA12.6
python -m pip install paddlepaddle-gpu==3.0.0 -i https://www.paddlepaddle.org.cn/packages/stable/cu126/
# for CPU
python -m pip install paddlepaddle==3.0.0 -i https://www.paddlepaddle.org.cn/packages/stable/cpu/
You can also integrate the model inference of the LayoutDetection module into your project. Before running the following code, please download the sample image to your local machine.
from paddleocr import LayoutDetection
model = LayoutDetection(model_name="PP-DocBlockLayout")
output = model.predict("SCL4KLVcaUKkinua_bTec.png", batch_size=1, layout_nms=True)
for res in output:
res.print()
res.save_to_img(save_path="./output/")
res.save_to_json(save_path="./output/res.json")
PP-DocBlockLayout huggingface.co is an AI model on huggingface.co that provides PP-DocBlockLayout's model effect (), which can be used instantly with this PaddlePaddle PP-DocBlockLayout model. huggingface.co supports a free trial of the PP-DocBlockLayout model, and also provides paid use of the PP-DocBlockLayout. Support call PP-DocBlockLayout model through api, including Node.js, Python, http.
PP-DocBlockLayout huggingface.co is an online trial and call api platform, which integrates PP-DocBlockLayout's modeling effects, including api services, and provides a free online trial of PP-DocBlockLayout, you can try PP-DocBlockLayout online for free by clicking the link below.
PaddlePaddle PP-DocBlockLayout online free url in huggingface.co:
PP-DocBlockLayout is an open source model from GitHub that offers a free installation service, and any user can find PP-DocBlockLayout on GitHub to install. At the same time, huggingface.co provides the effect of PP-DocBlockLayout install, users can directly use PP-DocBlockLayout installed effect in huggingface.co for debugging and trial. It also supports api for free installation.