Model reference · open weights

UVDoc_onnx

LLMs PaddlePaddle Image→text 1 build Open weights 595 dl/mo

UVDoc_onnx is an open-weight language model from Baidu.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • UVDoc_onnx is an image-to-text model developed by Baidu and published as PaddlePaddle/UVDoc_onnx.
  • It performs geometric transformations to correct document distortion, inclination, and perspective deformation to improve subsequent text recognition accuracy.
  • The model supports English and Chinese and is licensed under apache-2.0.

Summary of the PaddlePaddle/UVDoc_onnx model card, 2026-10-01

What it is

Released byBaidu
Released2026-05-26

From the model card

What Baidu says about UVDoc_onnx

Read the model card

Introduction

The main purpose of text image correction is to carry out geometric transformation on the image to correct the document distortion, inclination, perspective deformation and other problems in the image, so that the subsequent text recognition can be more accurate.

ModelCER
UVDoc0.179

Note: Test data set: docunet benchmark data set.

Model Usage

Install Dependencies

pip install -U paddleocr
pip install -U onnxruntime-gpu

CLI Usage

paddleocr text_image_unwarping -i ./demo.jpg --model_name UVDoc --engine onnxruntime

Python API Usage

from paddleocr import TextImageUnwarping

model = TextImageUnwarping(
    model_name="UVDoc",
    engine="onnxruntime",
)
output = model.predict("./demo.jpg", batch_size=1)
for res in output:
    res.print()
    res.save_to_img(save_path="./output/")

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

How it works

How language models work

Your prompttext / messagesTransformerattention over tokensNext-token loopgenerate + streamResponsetext · tool callsA language model reads your tokens and predicts the next one, again and again, streaming the reply back.
© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms