You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- This repository is mainly to convert [Inference Model in PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.6/doc/doc_ch/models_list.md) into ONNX format.
18
19
-**Input**: **url** or local **tar** path of inference model
19
20
-**Output**: converted **ONNX** model
20
21
- If it is a recognition model, you need to provide the original txt path of the corresponding dictionary (**Open the txt file in github, click the path after raw in the upper right corner, similar to [this](https://raw.githubusercontent.com/PaddlePaddle/PaddleOCR/release/2.6/ppocr/utils/ppocr_keys_v1.txt)**), used to write the dictionary into the ONNX model
21
22
- ☆ It needs to be used with the relevant reasoning code in [RapidOCR](https://github.com/RapidAI/RapidOCR)
22
23
- If you encounter a model that cannot be successfully converted, you can check which steps are wrong one by one according to the ideas in the figure below.
23
24
24
-
25
25
### Overall framework
26
+
26
27
```mermaid
27
28
flowchart TD
28
29
@@ -32,19 +33,23 @@ D --> E([Save])
32
33
```
33
34
34
35
### Installation
36
+
35
37
```bash
36
38
pip install paddleocr_convert
37
39
```
38
40
39
41
### Usage
42
+
>
40
43
> [!WARNING]
41
44
>
42
45
> Only support the **reasoning model** in the download address in [link](https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.6/doc/doc_ch/models_list.md), if it is a training model, Manual conversion to inference format is required.
43
46
>
44
47
> The **slim quantized model** in PaddleOCR does not support conversion.
0 commit comments