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

  • Log In
  • Sign Up

PaddlePaddle
/
PP-DocBlockLayout_safetensors

Image-to-Text
PaddleOCR
Safetensors
English
Chinese
rt_detr
OCR
PaddlePaddle
layout_detection
Model card Files Files and versions
xet
Community

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

  • Libraries
  • PaddleOCR

    How to use PaddlePaddle/PP-DocBlockLayout_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-DocBlockLayout_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
PP-DocBlockLayout_safetensors
132 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 12 commits
xiaohei66's picture
xiaohei66
Create README.md
1fc8f5e verified about 1 month ago
  • .gitattributes
    1.52 kB
    initial commit about 2 months ago
  • README.md
    1.73 kB
    Create README.md about 1 month ago
  • config.json
    3.3 kB
    Upload config.json with huggingface_hub about 2 months ago
  • inference.yml
    1.62 kB
    Upload inference.yml with huggingface_hub about 2 months ago
  • model.safetensors
    132 MB
    xet
    Add num_batches_tracked buffers for HF transformers compatibility about 1 month ago
  • preprocessor_config.json
    568 Bytes
    Fix resample to BICUBIC (3) to match PaddleX preprocessing about 1 month ago