Skip to content

Commit e073ac5

Browse files
committed
chore: update docs
1 parent f5fcdcf commit e073ac5

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

docs/blog/posts/about_model/adapt_PP-OCRv5_mobile_det.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ for res in output:
159159

160160
![alt text](../images/v5_mobile_det_vis_result.jpg)
161161

162-
==== "验证PP-OCRv5_server_det模型"
162+
=== "验证PP-OCRv5_server_det模型"
163163

164164
该部分主要是在RapidOCR项目中测试能否直接使用onnx模型。要点主要是确定模型前后处理是否兼容。从PaddleOCR config文件中比较[PP-OCRv4_server_det](https://github.com/PaddlePaddle/PaddleOCR/blob/b0b31c38aef135617a98fbf89c92efd8b2eebd73/configs/det/PP-OCRv4/PP-OCRv4_server_det.yml)和[PP-OCRv5_server_det](https://github.com/PaddlePaddle/PaddleOCR/blob/b0b31c38aef135617a98fbf89c92efd8b2eebd73/configs/det/PP-OCRv5/PP-OCRv5_server_det.yml)文件差异:
165165

@@ -194,10 +194,18 @@ for res in output:
194194

195195
相关测试步骤请参见[TextDetMetric](https://github.com/SWHL/TextRecMetric)的README,一步一步来就行。我这里测试最终精度如下:
196196

197+
PP-OCRv5_mobile_det
198+
197199
```json
198200
{'precision': 0.7861, 'recall': 0.8266, 'hmean': 0.8058, 'avg_elapse': 0.1499}
199201
```
200202

203+
PP-OCRv5_server_det
204+
205+
```json
206+
{'precision': 0.7394, 'recall': 0.8442, 'hmean': 0.7883, 'avg_elapse': 2.1106}
207+
```
208+
201209
该结果已经更新到[开源OCR模型对比](./model_summary.md)中。
202210

203211
### 5. 集成到rapidocr中
@@ -218,12 +226,6 @@ for res in output:
218226

219227
我这里已经做完了,小伙伴们感兴趣可以去看看源码。
220228

221-
#### 发布新版本
222-
223-
因为这次算是功能新增,按照语义化版本号来看,我们版本号需要从v2.0.7 → v2.1.0。
224-
225-
我只需要在github仓库中,打一个v2.1.0的tag,Github Action会自动跑所有单元测试,自动发版到pypi。
226-
227229
### 写在最后
228230

229231
至此,集成工作就基本完成了。

docs/blog/posts/about_model/model_summary.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,12 @@ hide:
6262

6363
| 模型 | 模型大小| Precision | Recall | H-mean | Speed(s/img) |
6464
| :---------------------------- | :----------------: | :-------: | :----: | :----: | :------ |
65-
| ch_PP-OCRv5_mobile_det_infer.onnx | 4.6M | 0.7861 | 0.8266 | 0.8058 | 0.1482 |
65+
| ch_PP-OCRv5_mobile_det.onnx | 4.6M | 0.7861 | 0.8266 | 0.8058 | - |
6666
| ch_PP-OCRv4_det_infer.onnx | 4.5M | 0.8301 | 0.8659 | 0.8476 | 0.2256 |
6767
| ch_PP-OCRv3_det_infer.onnx | 2.3M | 0.8021 | 0.8457 | 0.8234 | 0.1660 |
6868
| ch_PP-OCRv2_det_infer.onnx | 2.2M | 0.7579 | 0.8010 | 0.7788 | 0.1570 |
6969
||||||
70+
| ch_PP-OCRv5_server_det.onnx | 84M | 0.7394 | 0.8442 | 0.7883 | - |
7071
| ch_PP-OCRv4_det_server_infer.onnx | 108M | 0.7922 | 0.8533 | 0.8216 | 3.9093 |
7172
| ch_ppocr_server_v2.0_det_infer.onnx | 47M | 0.7298 | 0.8128 | 0.7691 | 0.7419 |
7273
||||||

0 commit comments

Comments
 (0)