[论文解读] PP-OCRv2: Bag of Tricks for Ultra Lightweight OCR System
PP-OCRv2 通过引入诸如 Collaborative Mutual Learning、CopyPaste、PP-LCNet、Unified-Deep Mutual Learning 和 Enhanced CTCLoss 等技术,在与 PP-OCR 相同推理成本下提高超轻量 OCR 的准确性。它在超轻量和服务器模型上进行了基准测试,并发布了开源 PaddleOCR 实现。
Optical Character Recognition (OCR) systems have been widely used in various of application scenarios. Designing an OCR system is still a challenging task. In previous work, we proposed a practical ultra lightweight OCR system (PP-OCR) to balance the accuracy against the efficiency. In order to improve the accuracy of PP-OCR and keep high efficiency, in this paper, we propose a more robust OCR system, i.e. PP-OCRv2. We introduce bag of tricks to train a better text detector and a better text recognizer, which include Collaborative Mutual Learning (CML), CopyPaste, Lightweight CPUNetwork (LCNet), Unified-Deep Mutual Learning (U-DML) and Enhanced CTCLoss. Experiments on real data show that the precision of PP-OCRv2 is 7% higher than PP-OCR under the same inference cost. It is also comparable to the server models of the PP-OCR which uses ResNet series as backbones. All of the above mentioned models are open-sourced and the code is available in the GitHub repository PaddleOCR which is powered by PaddlePaddle.
研究动机与目标
- 在不影响效率的前提下,提升超轻量 OCR 的文本检测与识别准确性。
- 引入训练技巧(CML、CopyPaste、U-DML、Enhanced CTCLoss)以增强检测器和识别器。
- 开发用于在 Intel CPU 上实现更快推理的 CPU 优化轻量骨干(PP-LCNet)。
- 提供消融研究和真实数据实验,以验证相较于 PP-OCR 的性能提升。
提出的方法
- 将 Collaborative Mutual Learning (CML) 应用于文本检测,包含一个教师和两个子学生。
- 在训练中使用 CopyPaste 数据增强以平衡前景文本实例。
- 采用 PP-LCNet 作为识别的轻量级、对 CPU 友好的骨干。
- 通过对识别进行两个结构相同的网络的联合训练,扩展 Unified-Deep Mutual Learning (U-DML),包括特征对齐和分布对齐。
- 通过添加 CenterLoss 条项以引导序列解码,将 Enhanced CTCLoss 融入训练。
实验结果
研究问题
- RQ1PP-OCRv2 是否能在相同推理成本下实现比 PP-OCR 更高的检测/识别准确性?
- RQ2像 CML、CopyPaste、U-DML 和 Enhanced CTCLoss 这样的技术在真实世界数据上是否带来可衡量的增益?
- RQ3CPU 优化骨干(PP-LCNet)是否在 Intel CPU 上实现快速、精准的识别?
- RQ4超轻量 OCR 在端到端指标上能在多大程度上接近服务器模型的性能?
主要发现
- PP-OCRv2 在相同推理成本下让端到端 OCR 的精度/召回平衡提升约 7%。
- 文本检测提升:DML 将 Hmean 提升约 2%,CML 提升约 3%,CopyPaste 再增约 0.6%。
- 文本识别提升:将 PP-LCNet 与 U-DML 和 Enhanced CTCLoss 结合,在基线基础上提升 8.1%,且模型规模适度增加。
- PP-LCNet 在 ImageNet 上相对于同类轻量模型展现出更优的速度-精度权衡。
- 端到端 PP-OCRv2 的 Hmean 比 PP-OCR mobile 提高 7.3%,在相同成本下并且接近服务器模型。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。