Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
0722c5f
Update for paddleocr 3.5
Bobholamovic Mar 16, 2026
154294d
Fix doc
Bobholamovic Mar 16, 2026
0949998
Add doc to nav
Bobholamovic Mar 16, 2026
d8f0bea
Refine docs
Bobholamovic Mar 16, 2026
60be983
Fix PaddleOCR-VL doc
Bobholamovic Mar 16, 2026
d38826e
Polish PaddleOCR-VL docs
Bobholamovic Mar 16, 2026
80b6a70
Polish docs
Bobholamovic Mar 17, 2026
ec9ff9d
Add notice
Bobholamovic Mar 31, 2026
11531a3
Polish doc
Bobholamovic Mar 31, 2026
0deb436
Merge branch 'main' into feat/engine
Bobholamovic Mar 31, 2026
ab6ddfd
Merge branch 'main' into feat/engine
Bobholamovic Mar 31, 2026
2165a37
Merge branch 'main' into feat/engine
Bobholamovic Apr 13, 2026
b7f5109
update docs
zhang-prog Apr 14, 2026
47b0ec9
update
zhang-prog Apr 14, 2026
9d2db59
update
zhang-prog Apr 15, 2026
1ccca39
update speed data
zhang-prog Apr 15, 2026
1bb74e8
add warning
zhang-prog Apr 15, 2026
adb3f3d
update warning
zhang-prog Apr 15, 2026
eb8a40e
update warning
zhang-prog Apr 15, 2026
d607a84
update warning
zhang-prog Apr 15, 2026
a6baef0
update warning
zhang-prog Apr 15, 2026
103aa46
update
zhang-prog Apr 15, 2026
1dc6de0
update
zhang-prog Apr 15, 2026
7f84471
Fix bugs
Bobholamovic Apr 15, 2026
82af8d3
Merge branch 'feat/engine' of https://github.com/Bobholamovic/PaddleO…
Bobholamovic Apr 15, 2026
8421d91
Update API docs
Bobholamovic Apr 15, 2026
b2de811
Update API docs
Bobholamovic Apr 15, 2026
e22dfe7
Update git ignore
Bobholamovic Apr 15, 2026
6b73ba3
Update docs
Bobholamovic Apr 15, 2026
3cb29ff
update pp_structure_v3 case
zhang-prog Apr 17, 2026
a94190c
update
zhang-prog Apr 17, 2026
d503d10
Merge pull request #14 from zhang-prog/feat/engine
Bobholamovic Apr 17, 2026
21eb86a
Allow specifying URLs for pdx and ppocr version
Bobholamovic Apr 17, 2026
16bfc32
Merge branch 'feat/engine' of https://github.com/Bobholamovic/PaddleO…
Bobholamovic Apr 17, 2026
d3f0ea9
docs: release-review fixes for 3.5 docs
scyyh11 Apr 18, 2026
7a2e8a4
docs: clarify that engine=None preserves legacy PaddleOCR behavior
scyyh11 Apr 19, 2026
a874bcb
Optimize docs
Bobholamovic Apr 20, 2026
85275d4
Update docs
Bobholamovic Apr 20, 2026
e8a0d58
docs: align CUDA 12.6 Docker driver version with pip section
scyyh11 Apr 20, 2026
8d8d84b
docs: include None in engine supported-values list
scyyh11 Apr 20, 2026
5fd3924
Merge branch 'feat/engine' from Bobholamovic/PaddleOCR
scyyh11 Apr 20, 2026
8de3204
Merge pull request #15 from scyyh11/docs-fix-17820
Bobholamovic Apr 20, 2026
70e4bf1
fix docs
zhang-prog Apr 20, 2026
3d43a0e
update
zhang-prog Apr 20, 2026
541ba90
update
zhang-prog Apr 20, 2026
28146c7
Merge pull request #16 from zhang-prog/feat/engine
Bobholamovic Apr 20, 2026
5c1fbd9
docs: revert PaddleOCR-VL.md to HTML and re-apply maintainer prose
scyyh11 Apr 20, 2026
c9c9cc0
Update docs
Bobholamovic Apr 20, 2026
efd4628
Merge branch 'main' of https://github.com/PaddlePaddle/PaddleOCR into…
Bobholamovic Apr 20, 2026
fbb1b68
Merge pull request #17 from scyyh11/docs-fix-paddleocr-vl-rendering
Bobholamovic Apr 20, 2026
37dd615
Merge branch 'feat/engine' of https://github.com/Bobholamovic/PaddleO…
Bobholamovic Apr 20, 2026
a39292b
Update doc
Bobholamovic Apr 20, 2026
41c55c7
Update docs
Bobholamovic Apr 20, 2026
b30c441
Fix docs
Bobholamovic Apr 20, 2026
74ffb08
Add .worktrees to gitignore
Bobholamovic Apr 20, 2026
c23e2d1
Fix doc bug
Bobholamovic Apr 20, 2026
d7da802
Merge branch 'main' into feat/engine
Bobholamovic Apr 20, 2026
1bcb72e
Merge branch 'main' into feat/engine
Bobholamovic Apr 20, 2026
2eba436
Merge branch 'main' into feat/engine
Bobholamovic Apr 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ inference_results/
output/
train_data/
log/

*.DS_Store
*.vs
*.user
Expand All @@ -26,9 +27,14 @@ log/
build/
dist/
*.egg-info/

/deploy/android_demo/app/OpenCV/
/deploy/android_demo/app/PaddleLite/
/deploy/android_demo/app/.cxx/
/deploy/android_demo/app/cache/

test_tipc/web/models/
test_tipc/web/node_modules/

.venv/
.worktrees/
19 changes: 13 additions & 6 deletions deploy/paddleocr_vl_docker/build_pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

set -euo pipefail

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${SCRIPT_DIR}/pip_version_arg.sh"

device_type='nvidia-gpu'
build_for_offline='false'
paddleocr_version='3.4.0'
Expand All @@ -18,8 +21,8 @@ Usage: $(basename "$0") [OPTIONS]
Options:
--device-type <type> Device type (nvidia-gpu|nvidia-gpu-sm120|hygon-dcu|kunlunxin-xpu|metax-gpu|iluvatar-gpu|huawei-npu|intel-gpu|amd-gpu) [default: ${device_type}]
--offline Build offline version
--ppocr-version <ver> PaddleOCR version [default: ${paddleocr_version}]
--pdx-version <ver> PaddleX version [default: ${paddlex_version}]
--ppocr-version <spec> PaddleOCR version or URL [default: ${paddleocr_version}]
--pdx-version <spec> PaddleX version or URL [default: ${paddlex_version}]
--platform <platform> Build platform [default: ${platform}]
--action <action> Post-build action: load|push|tar|none [default: ${action}]
load: Load to local Docker
Expand All @@ -34,6 +37,7 @@ Examples:
$0 --device-type nvidia-gpu --action push
$0 --device-type nvidia-gpu --platform linux/amd64,linux/arm64 --action push
$0 --device-type nvidia-gpu --action tar --platform linux/amd64
$0 --pdx-version git+https://github.com/PaddlePaddle/PaddleX.git@main
EOF
}

Expand Down Expand Up @@ -133,6 +137,9 @@ while [[ $# -gt 0 ]]; do
esac
done

paddleocr_pip_suffix="$(pip_build_arg_suffix "${paddleocr_version}")"
paddlex_pip_suffix="$(pip_build_arg_suffix "${paddlex_version}")"

# Validate platform compatibility for load action
if [[ "${action}" == 'load' ]] && [[ "${platform}" == *','* ]]; then
echo "Error: Cannot use --action load with multiple platforms" >&2
Expand All @@ -155,15 +162,15 @@ if [ ! -f "${dockerfile}" ]; then
fi

revision="$(git rev-parse --short HEAD)"
image_version="${revision}-ppocr${paddleocr_version}-pdx${paddlex_version}"
image_version="${revision}-ppocr$(version_tag_label "${paddleocr_version}")-pdx$(version_tag_label "${paddlex_version}")"

# Image name
base_image_name='paddleocr-vl'

# Main tags
main_tag="${registry}/${base_image_name}:${tag_suffix}"
version_tag="${registry}/${base_image_name}:${tag_suffix/latest/${image_version}}"
paddleocr_version_tag="${registry}/${base_image_name}:${tag_suffix/latest/paddleocr${paddleocr_version%.*}}"
paddleocr_version_tag="${registry}/${base_image_name}:${tag_suffix/latest/paddleocr$(version_tag_label "${paddleocr_version}")}"

# Build arguments array
build_args=(
Expand All @@ -173,8 +180,8 @@ build_args=(
'-t' "${version_tag}"
'-t' "${paddleocr_version_tag}"
'--build-arg' "BUILD_FOR_OFFLINE=${build_for_offline}"
'--build-arg' "PADDLEOCR_VERSION===${paddleocr_version}"
'--build-arg' "PADDLEX_VERSION===${paddlex_version}"
'--build-arg' "PADDLEOCR_VERSION=${paddleocr_pip_suffix}"
'--build-arg' "PADDLEX_VERSION=${paddlex_pip_suffix}"
'--build-arg' "http_proxy=${http_proxy:-}"
'--build-arg' "https_proxy=${https_proxy:-}"
'--build-arg' "no_proxy=${no_proxy:-}"
Expand Down
19 changes: 13 additions & 6 deletions deploy/paddleocr_vl_docker/build_vlm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

set -euo pipefail

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${SCRIPT_DIR}/pip_version_arg.sh"

device_type='nvidia-gpu'
backend='vllm'
build_for_offline='false'
Expand All @@ -20,8 +23,8 @@ Options:
--device-type <type> Device type (nvidia-gpu|nvidia-gpu-sm120|hygon-dcu|kunlunxin-xpu|metax-gpu|iluvatar-gpu|huawei-npu|intel-gpu|amd-gpu) [default: ${device_type}]
--backend <backend> Backend type (vllm|fastdeploy) [default: ${backend}]
--offline Build offline version
--ppocr-version <ver> PaddleOCR version [default: ${paddleocr_version}]
--pdx-version <ver> PaddleX version [default: ${paddlex_version}]
--ppocr-version <spec> PaddleOCR version or URL [default: ${paddleocr_version}]
--pdx-version <spec> PaddleX version or URL [default: ${paddlex_version}]
--platform <platform> Build platform [default: ${platform}]
--action <action> Post-build action: load|push|tar|none [default: ${action}]
load: Load to local Docker
Expand All @@ -36,6 +39,7 @@ Examples:
$0 --device-type nvidia-gpu --backend vllm --action push
$0 --platform linux/amd64,linux/arm64 --action push
$0 --action tar --platform linux/amd64
$0 --ppocr-version https://github.com/PaddlePaddle/PaddleOCR/archive/main.zip
EOF
}

Expand Down Expand Up @@ -151,6 +155,9 @@ while [[ $# -gt 0 ]]; do
esac
done

paddleocr_pip_suffix="$(pip_build_arg_suffix "${paddleocr_version}")"
paddlex_pip_suffix="$(pip_build_arg_suffix "${paddlex_version}")"

# Validate platform compatibility for load action
if [[ "${action}" == 'load' ]] && [[ "${platform}" == *','* ]]; then
echo "Error: Cannot use --action load with multiple platforms" >&2
Expand All @@ -173,15 +180,15 @@ if [ ! -f "${dockerfile}" ]; then
fi

revision="$(git rev-parse --short HEAD)"
image_version="${revision}-ppocr${paddleocr_version}-pdx${paddlex_version}"
image_version="${revision}-ppocr$(version_tag_label "${paddleocr_version}")-pdx$(version_tag_label "${paddlex_version}")"

# Image name
base_image_name="paddleocr-genai-${backend}-server"

# Main tags
main_tag="${registry}/${base_image_name}:${tag_suffix}"
version_tag="${registry}/${base_image_name}:${tag_suffix/latest/${image_version}}"
paddleocr_version_tag="${registry}/${base_image_name}:${tag_suffix/latest/paddleocr${paddleocr_version%.*}}"
paddleocr_version_tag="${registry}/${base_image_name}:${tag_suffix/latest/paddleocr$(version_tag_label "${paddleocr_version}")}"

# Build arguments array
build_args=(
Expand All @@ -191,8 +198,8 @@ build_args=(
'-t' "${version_tag}"
'-t' "${paddleocr_version_tag}"
'--build-arg' "BUILD_FOR_OFFLINE=${build_for_offline}"
'--build-arg' "PADDLEOCR_VERSION===${paddleocr_version}"
'--build-arg' "PADDLEX_VERSION===${paddlex_version}"
'--build-arg' "PADDLEOCR_VERSION=${paddleocr_pip_suffix}"
'--build-arg' "PADDLEX_VERSION=${paddlex_pip_suffix}"
'--build-arg' "BACKEND=${backend}"
'--build-arg' "http_proxy=${http_proxy:-}"
'--build-arg' "https_proxy=${https_proxy:-}"
Expand Down
47 changes: 47 additions & 0 deletions deploy/paddleocr_vl_docker/pip_version_arg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/usr/bin/env bash

pip_build_arg_suffix() {
local v="$1"
[[ -z "$v" ]] && {
echo ""
return
}
if [[ "$v" == '=='* ]]; then
echo "$v"
return
fi
if [[ "$v" == '>='* ]] || [[ "$v" == '<='* ]] || [[ "$v" == '~='* ]] || [[ "$v" == '!='* ]]; then
echo "$v"
return
fi
if [[ "$v" == '<'* ]] || [[ "$v" == '>'* ]]; then
echo "$v"
return
fi
if [[ "$v" =~ ^(https?://|git\+|file://) ]]; then
echo " @${v}"
return
fi
if [[ "$v" == @* ]]; then
echo " @${v#@}"
return
fi
echo "==${v}"
}

version_tag_label() {
local v="$1"
if [[ "$v" =~ ^(https?://|git\+|file://) ]] || [[ "$v" == @* ]]; then
if command -v shasum >/dev/null 2>&1; then
printf 'u%s' "$(printf '%s' "$v" | shasum -a 256 | cut -c1-8)"
elif command -v sha256sum >/dev/null 2>&1; then
printf 'u%s' "$(printf '%s' "$v" | sha256sum | cut -c1-8)"
else
printf 'u%s' "$(printf '%s' "$v" | cksum | cut -c1-8)"
fi
else
local s="$v"
[[ "$s" == '=='* ]] && s="${s#==}"
echo "${s%.*}"
fi
}
2 changes: 2 additions & 0 deletions docs/version3.x/deployment/high_performance_inference.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ This document primarily introduces the installation and usage methods for high-p

### 1.1 Install High-Performance Inference Dependencies

The high-performance inference functionality depends on the PaddlePaddle framework, so before proceeding to the subsequent steps, you need to ensure that PaddlePaddle is installed in your environment.

Install the dependencies required for high-performance inference using the PaddleOCR CLI:

```bash
Expand Down
2 changes: 2 additions & 0 deletions docs/version3.x/deployment/high_performance_inference.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ comments: true

## 1.1 安装高性能推理依赖

高性能推理功能依赖于飞桨框架,因此,在进行后续步骤前,您需要确保环境中安装有飞桨框架。

通过 PaddleOCR CLI 安装高性能推理所需依赖:

```bash
Expand Down
Loading
Loading