Compared with model v2, the 3rd version of the detection model has an improvement in accuracy, and the 2.1 version of the recognition model has optimizations in accuracy and speed with CPU.
Compared with models 1.1, which are trained with static graph programming paradigm, models 2.0 or higher are the dynamic graph trained version and achieve close performance.
All models in this tutorial are from the PaddleOCR series, for more introduction to algorithms and models based on the public dataset, you can refer to algorithm overview tutorial.
The downloadable models provided by PaddleOCR include the inference model, trained model, pre-trained model and nb model. The differences between the models are as follows:
model type
model format
description
inference model
inference.pdmodel、inference.pdiparams
Used for inference based on Paddle inference engine,detail
trained model, pre-trained model
*.pdparams、*.pdopt、*.states
The checkpoints model saved in the training process, which stores the parameters of the model, is mostly used for model evaluation and continuous training.
nb model
*.nb
Model optimized by Paddle-Lite, which is suitable for mobile-side deployment scenarios (Paddle-Lite is needed for nb model deployment).
The relationship of the above models is as follows.
Note: The trained model is fine-tuned on the pre-trained model with real data and synthesized vertical text data, which achieved better performance in the real scene. The pre-trained model is directly trained on the full amount of real data and synthesized data, which is more suitable for fine-tuning your dataset.
Paddle Lite is an updated version of Paddle-Mobile, an open-open source deep learning framework designed to make it easy to perform inference on mobile, embedded, and IoT devices. It can further optimize the inference model and generate the nb model used for edge devices. It's suggested to optimize the quantization model using Paddle-Lite because the INT8 format is used for the model storage and inference.
This chapter lists OCR nb models with PP-OCRv2 or earlier versions. You can access the latest nb models from the above tables.