Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
PaddleOCR_paddle_onnxruntime
Commits
c1e65c8e
Commit
c1e65c8e
authored
Oct 24, 2023
by
sugon_cxj
Browse files
update README
parent
392a95de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
README.md
README.md
+8
-4
requirements.txt
requirements.txt
+1
-0
No files found.
README.md
View file @
c1e65c8e
#
P
addle
OCR
#
p
addle
ocr_paddle_onnxruntime
## 论文
PaddleOCR通过det、rec、cls三个模型分别实现字符检测、字符识别和字符方向分类的应用
...
...
@@ -26,7 +26,7 @@ cls:

## 算法原理
det->cls->rec->text

## 数据集
推荐使用icdar2015数据集
[
icdar2015
](
https://rrc.cvc.uab.es/?ch=4&com=downloads
)
。
...
...
@@ -57,9 +57,13 @@ det->cls->rec->text
| ...
```
## 环境配置
在
[
光源
](
https://www.sourcefind.cn/#/service-details
)
可拉取训练以及推理的docker镜像,在
[
光合开发者社区
](
https://cancon.hpccube.com:65024/4/main/
)
可下载paddle安装包。PaddleOCR推荐的镜像如下:
在
[
光源
](
https://www.sourcefind.cn/#/service-details
)
可拉取训练以及推理的docker镜像,在
[
光合开发者社区
](
https://cancon.hpccube.com:65024/4/main/
)
可下载paddle
、onnxruntime
安装包。PaddleOCR推荐的镜像如下:
```
docker pull image.sourcefind.cn:5000/dcu/admin/base/paddlepaddle:2.3.2-centos7.6-dtk-22.10.1-py37-latest
docker run -d -t --privileged --device=/dev/kfd --device=/dev/dri/ --network=host --group-add video --name paddleocr-test image.sourcefind.cn:5000/dcu/admin/base/paddlepaddle:2.3.2-centos7.6-dtk-22.10.1-py37-latest
docker exec -it paddleocr-test bash
pip3 install -r requirements.txt
pip3 install onnxruntime.whl
```
## 训练
...
...
@@ -91,7 +95,7 @@ python3 -m paddle.distributed.launch --gpus '0,1,2,3' tools/eval.py -c configs/
```
## 推理
```
python3 tools/infer/predict_system.py --image_dir="./doc/imgs/" --det_model_dir="./ch_PP-OCRv3_det_infer/" --rec_model_dir="./ch_PP-OCRv3_rec_infer/" --use_angle_cls=
fals
e --rec_image_shape=3,48,320 --warmup=1
python3 tools/infer/predict_system.py --image_dir="./doc/imgs/" --det_model_dir="./ch_PP-OCRv3_det_infer/"
--cls_model_dir="./ch_ppocr_mobile_v2.0_cls_infer/"
--rec_model_dir="./ch_PP-OCRv3_rec_infer/" --use_angle_cls=
tru
e --rec_image_shape=3,48,320 --warmup=1
```
## 推理(ort)
```
...
...
requirements.txt
View file @
c1e65c8e
...
...
@@ -15,3 +15,4 @@ openpyxl
attrdict
onnx
==1.12.0
protobuf
==3.20.0
pyyaml
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment