Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

PaddlePaddle
/
PP-DocLayoutV4

Object Detection
PaddleOCR
English
Chinese
multilingual
PaddlePaddle
ocr
layout
layout_detection
reading_order
Model card Files Files and versions
xet
Community

Instructions to use PaddlePaddle/PP-DocLayoutV4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PaddleOCR

    How to use PaddlePaddle/PP-DocLayoutV4 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")
    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
PP-DocLayoutV4
137 MB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 10 commits
zhangyubo0722's picture
zhangyubo0722
Update README.md
d77d298 verified about 8 hours ago
  • .gitattributes
    1.63 kB
    Update to epoch126 export (aligns with PP-DocLayoutV4_safetensors) 3 months ago
  • README.md
    19.8 kB
    Update README.md about 8 hours ago
  • inference.json
    1.28 MB
    Update final PP-DocLayoutV4 inference weights 4 days ago
  • inference.pdiparams
    136 MB
    xet
    Update final PP-DocLayoutV4 inference weights 4 days ago
  • inference.yml
    1.48 kB
    Update geometry-enabled PP-DocLayoutV4 Paddle inference export about 2 months ago