#433433rd of 433 in ML frameworks and librariesFor data and documents, documents and ocr

pytorchocr

PyTorch ports of PaddleOCR detection, recognition and classification models

Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Stars
1.5k
License
no license
Last commit
Jan 2026
Language
Python
Stars, last 29 weeks+18
6 May 2026: 1,508 stars13 May 2026: 1,508 stars20 May 2026: 1,508 stars27 May 2026: 1,510 stars3 Jun 2026: 1,512 stars10 Jun 2026: 1,513 stars17 Jun 2026: 1,513 stars24 Jun 2026: 1,514 stars1 Jul 2026: 1,514 stars8 Jul 2026: 1,514 stars15 Jul 2026: 1,514 stars22 Jul 2026: 1,514 stars29 Jul 2026: 1,515 stars5 Aug 2026: 1,516 stars12 Aug 2026: 1,517 stars19 Aug 2026: 1,518 stars26 Aug 2026: 1,518 stars2 Sept 2026: 1,519 stars9 Sept 2026: 1,521 stars16 Sept 2026: 1,522 stars23 Sept 2026: 1,523 stars30 Sept 2026: 1,523 stars7 Oct 2026: 1,523 stars14 Oct 2026: 1,524 stars21 Oct 2026: 1,525 stars28 Oct 2026: 1,525 stars4 Nov 2026: 1,526 stars11 Nov 2026: 1,526 stars18 Nov 2026: 1,526 stars25 Nov 2026: 1,526 stars

1,508 on 6 May 20261,526 on 25 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

PytorchOCR converts PaddleOCR models (PP-OCRv3, PP-OCRv4 and several recognition architectures) to PyTorch and checks each port against the Paddle output, reporting numeric alignment error per model. It includes training, evaluation, ONNX export and det/cls/rec inference scripts. Some models are still unverified or listed as not aligned.

Who it is for: Engineers running PaddleOCR models in PyTorch or ONNX without Paddle

Strengths

  • Per-model alignment table with numeric error against Paddle, often below 1e-6
  • Covers PP-OCRv3 and v4 det, rec and cls, plus CTC, attention and SAR recognizers
  • Exports to ONNX with pre- and post-processing parameters, and includes ONNX inference
  • Single and multi-GPU training via torchrun, plus eval and inference scripts

Weaknesses

  • Several models not aligned: PP-OCRv2, rec_mtb_nrtr, and r34_vd TPS variants
  • TensorRT inference is unchecked on the TODO list
  • No license stated in the repository
  • README is Chinese only, and weights are hosted on Baidu Cloud

What it needs

  • GPU optional
  • Needs PyTorch 2.0.1, PaddlePaddle 2.5.1 (weight conversion), ONNX
  • Models: PP-OCRv4, PP-OCRv3, ONNX, PyTorch .pth

Also in ML frameworks and libraries

See all 433
Also in ML frameworks and libraries
RankProjectScore
#428xaiPython library for data imbalance and model bias analysis in tabular ML1.3k starsMIT8 out of 100
#429torchviewGraphviz visualizations of PyTorch model graphs with tensor shapes1.1k starsMIT8 out of 100
#430sklearn-crfsuitescikit-learn-style Python wrapper for CRFsuite sequence labeling441 starsno license7 out of 100
#431drl-robot-navigationTD3 reinforcement learning for robot goal navigation in ROS Gazebo1.4k starsMIT6 out of 100
#432adbenchBenchmark suite for tabular anomaly detection algorithms and datasets1k starsBSD-2-Clause5 out of 100