Model reference · open weights

PP-OCRv6_medium_det_safetensors

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

PP-OCRv6_medium_det_safetensors is an open-weight language model from Baidu. PP-OCRv6_medium_det_safetensors (FP32) weighs 44 MB; the smallest configuration that runs it is RTX 3060 12 GB.

PP-OCRv6_medium_det is a text detection model developed by Baidu for image-to-text tasks. It contains 22M parameters and supports English and Chinese. The model is licensed under apache-2.0.

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

What it is

Released byBaidu
Released2026-06-09
Parameters22M
VRAM44 MB for the weights

What it runs on

Memory and cards for PP-OCRv6_medium_det_safetensors (FP32)

44 MBweights, file size
762 MBruntime overhead, at least

How much memory each request adds isn't estimated yet for this architecture. The weights need at least the cards below, plus room for the context.

CardWeights alone
RTX 3060 12 GBfits
RTX 4060 Ti 16 GBfits
RTX 3090 24 GBfits
RTX 4090 24 GBfits
RTX 5090 32 GBfits
L40S 48 GBfits
A100 80 GBfits
H100 80 GBfits
RTX PRO 6000 Blackwell 96 GBfits
DGX Spark (GB10) 128 GB unifiedfits
H200 141 GBfits
B200 180 GBfits

From the model card

What Baidu says about PP-OCRv6_medium_det_safetensors

Read the model card

PP-OCRv6: From 1.5M to 34.5M Parameters, Surpassing Billion-Scale VLMs on OCR Tasks

🔥 Official Website 📝 Technical Report

PP-OCRv6 Overview

PP-OCRv6 is a lightweight OCR system that combines architectural innovation with data-centric optimization. It redesigns the backbone, detection neck, and recognition neck around a unified MetaFormer-style building block with structural reparameterization. Three model tiers (medium, small, tiny) share the same block primitives, covering deployment scenarios from server to edge.

Key Features

  1. Unified and Scalable Model Family: A three-tier OCR model family spanning 1.5M to 34.5M parameters. PP-OCRv6_medium achieves 86.2% detection Hmean and 83.2% recognition accuracy, outperforming PP-OCRv5_server by +4.6% and +5.1% respectively.

  2. Lightweight Architectural Innovations: (i) LCNetV4, a MetaFormer-style lightweight backbone with structural reparameterization; (ii) RepLKFPN, a detection neck with dilated reparameterizable depthwise convolutions; (iii) EncoderWithLightSVTR, a recognition neck with local-global attention and additive skip connections.

  3. Multi-Language and Scenario Support: Supports 48 languages and diverse industrial scenes (digital displays, dot-matrix characters, tire prints, etc.), surpassing Qwen3-VL-235B, GPT-5.5, and Gemini-3.1-Pro with orders of magnitude fewer parameters.

PP-OCRv6_medium_det

Introduction

PP-OCRv6 text detection architecture overview

PP-OCRv6_medium_det is the largest model in the PP-OCRv6 detection series developed by the PaddleOCR team. It uses LCNetV4 as the backbone and RepLKFPN as the feature pyramid neck, providing accurate text localization across diverse scenarios including handwritten, printed, rotated, curved, and artistic text in multiple languages. The model contains 15.5M parameters. The key accuracy metrics are as follows:

ModelAverageHandwritten CNHandwritten ENPrinted CNPrinted ENTraditional ChineseAncient TextJapaneseBlurEmojiWarpPinyinArtisticTableRotationIndustrialGeneral
Gemini-3.1-Pro46.853.456.547.347.639.045.838.250.068.144.640.665.226.922.152.550.2
GPT-5.545.642.458.550.251.935.026.742.049.197.537.736.352.071.010.036.232.6
Qwen3-VL-235B38.356.566.041.737.019.313.127.038.581.228.533.068.319.62.148.432.3
Kimi-K2.612.812.525.510.118.58.27.511.216.928.913.96.816.110.90.86.310.9
MiniMax-M312.013.719.39.814.17.711.110.616.132.812.88.516.65.50.16.46.4
PP-OCRv5_server81.680.384.194.591.781.567.677.290.196.287.667.167.397.180.064.379.7
PP-OCRv5_mobile75.274.477.790.591.082.358.172.787.493.682.757.552.592.864.752.872.1
PP-OCRv6_medium86.283.784.095.193.786.380.284.394.199.688.674.069.096.893.873.382.8
PP-OCRv6_small84.180.587.194.293.685.772.682.392.699.787.669.665.395.693.767.678.2
PP-OCRv6_tiny80.679.485.993.192.383.763.076.689.399.886.159.060.194.791.062.073.8

Quick Start

Installation

  1. PaddleOCR
# Install the basic version
pip install paddleocr

# Install the full version (includes all features)
pip install "paddleocr[all]"
  1. Transformers environment (required for safetensors models)
pip install transformers torch

Model Usage

You can quickly experience the functionality with a single command:

paddleocr text_detection \
    --model_name PP-OCRv6_medium_det \
    --engine transformers \
    -i https://cdn-uploads.huggingface.co/production/uploads/681c1ecd9539bdde5ae1733c/3ul2Rq4Sk5Cn-l69D695U.png

You can also integrate the model inference of the text detection module into your project. Before running the following code, please download the sample image to your local machine.

from paddleocr import TextDetection
model = TextDetection(model_name="PP-OCRv6_medium_det", engine="transformers")
output = model.predict(input="3ul2Rq4Sk5Cn-l69D695U.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")

For details about usage command and descriptions of parameters, please refer to the Document.

Pipeline Usage

The general OCR pipeline extracts text information from images. The pipeline consists of several modules:

  • Document Image Orientation Classification Module (Optional)
  • Text Image Unwarping Module (Optional)
  • Text Line Orientation Classification Module (Optional)
  • Text Detection Module
  • Text Recognition Module

Run a single command to quickly experience the OCR pipeline:

paddleocr ocr -i https://cdn-uploads.huggingface.co/production/uploads/681c1ecd9539bdde5ae1733c/3ul2Rq4Sk5Cn-l69D695U.png \
    --text_detection_model_name PP-OCRv6_medium_det \
    --text_recognition_model_name PP-OCRv6_medium_rec \
    --engine transformers \
    --use_doc_

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