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_onnxruntime
Commits
ea834996
"benchmarking/switchback/speed_benchmark.py" did not exist on "ec1ea637118a65faadf80bb356944e6fc3ecbeef"
Commit
ea834996
authored
Oct 17, 2023
by
yangql
Browse files
新增dockerfile方式
parent
1045640d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
README.md
README.md
+10
-3
docker/Dockerfile
docker/Dockerfile
+3
-0
No files found.
README.md
View file @
ea834996
...
@@ -31,7 +31,7 @@ cls:
...
@@ -31,7 +31,7 @@ cls:
## 算法原理
## 算法原理
## 环境配置
## 环境配置
### Docker
### Docker
(方法一)
拉取镜像:
拉取镜像:
```
```
docker pull image.sourcefind.cn:5000/dcu/admin/base/custom:ort1.14.0_migraphx3.0.0-dtk22.10.1
docker pull image.sourcefind.cn:5000/dcu/admin/base/custom:ort1.14.0_migraphx3.0.0-dtk22.10.1
...
@@ -43,6 +43,13 @@ docker run --shm-size 16g --network=host --name=paddleocr_ort --privileged --dev
...
@@ -43,6 +43,13 @@ docker run --shm-size 16g --network=host --name=paddleocr_ort --privileged --dev
# 激活dtk
# 激活dtk
source /opt/dtk/env.sh
source /opt/dtk/env.sh
```
```
### Dockerfile(方法二)
```
cd ./docker
docker build --no-cache -t paddleocr_onnxruntime:2.0 .
docker run --shm-size 16g --network=host --name=paddleocr_ort --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $PWD/paddleocr_onnxruntime:/home/paddleocr_onnxruntime -it <Your Image ID> /bin/bash
```
## 数据集
## 数据集
## 推理
## 推理
...
@@ -124,8 +131,9 @@ crnnTime[0](58.019418ms)
...
@@ -124,8 +131,9 @@ crnnTime[0](58.019418ms)
textLine[11](If the past has taught us anything, it is that every cause brings)
textLine[11](If the past has taught us anything, it is that every cause brings)
textScores[11]{0.996653 ,0.625094 ,0.97989 ,0.999761 ,0.816289 ,0.99883 ,0.963821 ,0.999222 ,0.999725 ,0.999588 ,0.542554 ,0.998707 ,0.911063 ,0.603935 ,0.99833 ,0.994734 ,0.998606 ,0.999571 ,0.9995 ,0.99971 ,0.983833 ,0.941867 ,0.989647 ,0.999145 ,0.998365 ,0.995752 ,0.999369 ,0.999424 ,0.976135 ,0.998815 ,0.999755 ,0.67898 ,0.999837 ,0.999205 ,0.982815 ,0.991013 ,0.999252 ,0.818822 ,0.996863 ,0.998451 ,0.999198 ,0.812635 ,0.999701 ,0.567811 ,0.999545 ,0.815998 ,0.996471 ,0.998722 ,0.999546 ,0.999121 ,0.999202 ,0.99971 ,0.980306 ,0.999399 ,0.635116 ,0.99954 ,0.998961 ,0.600432 ,0.990555 ,0.999872 ,0.998974 ,0.999687 ,0.56602 ,0.999607 ,0.999343}
textScores[11]{0.996653 ,0.625094 ,0.97989 ,0.999761 ,0.816289 ,0.99883 ,0.963821 ,0.999222 ,0.999725 ,0.999588 ,0.542554 ,0.998707 ,0.911063 ,0.603935 ,0.99833 ,0.994734 ,0.998606 ,0.999571 ,0.9995 ,0.99971 ,0.983833 ,0.941867 ,0.989647 ,0.999145 ,0.998365 ,0.995752 ,0.999369 ,0.999424 ,0.976135 ,0.998815 ,0.999755 ,0.67898 ,0.999837 ,0.999205 ,0.982815 ,0.991013 ,0.999252 ,0.818822 ,0.996863 ,0.998451 ,0.999198 ,0.812635 ,0.999701 ,0.567811 ,0.999545 ,0.815998 ,0.996471 ,0.998722 ,0.999546 ,0.999121 ,0.999202 ,0.99971 ,0.980306 ,0.999399 ,0.635116 ,0.99954 ,0.998961 ,0.600432 ,0.990555 ,0.999872 ,0.998974 ,0.999687 ,0.56602 ,0.999607 ,0.999343}
crnnTime[11](38.051758ms)
crnnTime[11](38.051758ms)
```
```
### 精度
无
## 应用场景
## 应用场景
### 算法类别
### 算法类别
`ocr`
`ocr`
...
@@ -136,7 +144,6 @@ crnnTime[11](38.051758ms)
...
@@ -136,7 +144,6 @@ crnnTime[11](38.051758ms)
https://developer.hpccube.com/codes/modelzoo/paddleocr_onnxruntime
https://developer.hpccube.com/codes/modelzoo/paddleocr_onnxruntime
## 参考资料
## 参考资料
https://github.com/RapidAI/RapidOCR
https://github.com/RapidAI/RapidOCR
https://github.com/RapidAI/RapidOcrOnnx
https://github.com/RapidAI/RapidOcrOnnx
docker/Dockerfile
0 → 100644
View file @
ea834996
FROM
image.sourcefind.cn:5000/dcu/admin/base/custom:ort1.14.0_migraphx3.0.0-dtk22.10.1
RUN
source
/opt/dtk/env.sh
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