From c8aa934673a5ddd8d870aef673f91e6910df7c62 Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Thu, 28 Apr 2022 21:14:05 +0800 Subject: [PATCH] add inference time --- doc/doc_ch/ppocr_introduction.md | 4 ++-- doc/doc_en/ppocr_introduction_en.md | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/doc/doc_ch/ppocr_introduction.md b/doc/doc_ch/ppocr_introduction.md index 5ac51cb0..b5def1d9 100644 --- a/doc/doc_ch/ppocr_introduction.md +++ b/doc/doc_ch/ppocr_introduction.md @@ -48,8 +48,8 @@ PP-OCRv3文本检测从网络结构、蒸馏训练策略两个方向做了进一 |0|ppocr_mobile|3M|81.3|117ms| |1|PPOCRV2|3M|83.3|117ms| |2|teacher DML|124M|86.0|-| -|3|1 + 2 + RESFPN|3.6M|85.4|121ms| -|4|1 + 2 + LKPAN|4.6M|86.0|146ms| +|3|1 + 2 + RESFPN|3.6M|85.4|124ms| +|4|1 + 2 + LKPAN|4.6M|86.0|156ms| diff --git a/doc/doc_en/ppocr_introduction_en.md b/doc/doc_en/ppocr_introduction_en.md index 8f27711b..2316a1e8 100644 --- a/doc/doc_en/ppocr_introduction_en.md +++ b/doc/doc_en/ppocr_introduction_en.md @@ -37,6 +37,15 @@ PP-OCRv3 text detection has been further optimized from the two directions of ne - Network structure improvement: Two improved FPN network structures, RSEFPN and LKPAN, are proposed to optimize the features in the FPN from the perspective of channel attention and a larger receptive field, and optimize the features extracted by the FPN. - Distillation training strategy: First, use resnet50 as the backbone, the improved LKPAN network structure as the FPN, and use the DML self-distillation strategy to obtain a teacher model with higher accuracy; then, the FPN part of the student model adopts RSEFPN, and adopts the CML distillation method proposed by PPOCRV2, during the training process, dynamically adjust the proportion of CML distillation teacher loss. +|Index|Method|Model SIze|Hmean|CPU inference time| +|-|-|-|-|-| +|0|ppocr_mobile|3M|81.3|117ms| +|1|PPOCRV2|3M|83.3|117ms| +|2|teacher DML|124M|86.0|-| +|3|1 + 2 + RESFPN|3.6M|85.4|124ms| +|4|1 + 2 + LKPAN|4.6M|86.0|156ms| + +*note: CPU inference time refers to the average inference time on an Intel Gold 6148CPU with mkldnn enabled.* ## 2. Features -- GitLab