Rosetta¶
1. Introduction¶
Paper information:
Rosetta: Large Scale System for Text Detection and Recognition in Images Borisyuk F , Gordo A , V Sivakumar KDD, 2018
Using MJSynth and SynthText two text recognition datasets for training, and evaluating on IIIT, SVT, IC03, IC13, IC15, SVTP, CUTE datasets, the algorithm reproduction effect is as follows:
Models | Backbone Networks | Configuration Files | Avg Accuracy | Download Links |
---|---|---|---|---|
Rosetta | Resnet34_vd | configs/rec/rec_r34_vd_none_none_ctc.yml | 79.11% | training model |
Rosetta | MobileNetV3 | configs/rec/rec_mv3_none_none_ctc.yml | 75.80% | training model |
2. Environment¶
Please refer to Operating Environment Preparation to configure the PaddleOCR operating environment, and refer to Project Cloneto clone the project code.
3. Model Training / Evaluation / Prediction¶
Please refer to Text Recognition Training Tutorial. PaddleOCR modularizes the code, and training different recognition models only requires changing the configuration file. Take the backbone network based on Resnet34_vd as an example:
3.1 Training¶
3.2 Evaluation¶
3.3 Prediction¶
4. Inference and Deployment¶
4.1 Python Inference¶
First, convert the model saved during the Rosetta text recognition training process into an inference model. Take the model trained on the MJSynth and SynthText text recognition datasets based on the Resnet34_vd backbone network as an example ( Model download address ), which can be converted using the following command:
Rosetta text recognition model inference, you can execute the following commands:
The inference results are as follows:
4.2 C++ Inference¶
Not currently supported
4.3 Serving¶
Not currently supported
4.4 More¶
The Rosetta model also supports the following inference deployment methods:
- Paddle2ONNX Inference: After preparing the inference model, refer to the paddle2onnx tutorial.
5. FAQ¶
Citation¶
@inproceedings{2018Rosetta,
title={Rosetta: Large Scale System for Text Detection and Recognition in Images},
author={ Borisyuk, Fedor and Gordo, Albert and Sivakumar, Viswanath },
booktitle={the 24th ACM SIGKDD International Conference},
year={2018},
}