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
RetinaFace_migraphx
Commits
83e9a654
Commit
83e9a654
authored
Jun 13, 2023
by
shizhm
Browse files
修改readme
parent
1e5dfb69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
8 deletions
+23
-8
README.md
README.md
+23
-8
No files found.
README.md
View file @
83e9a654
...
...
@@ -14,9 +14,9 @@ RetinaFace模型 有几个主要特点:
## python版本推理
下面介绍如何运行
p
ython代码示例,
具体推理代码解析,在Doc/
Tutorial_Python.md
中有详细说明
。
下面介绍如何运行
P
ython代码示例,
Python示例的详细说明见Doc目录下的
Tutorial_Python.md。
###
拉取
镜像
###
下载
镜像
在光源可拉取推理的docker镜像,RetinaFace工程推荐的镜像如下:
...
...
@@ -24,9 +24,13 @@ RetinaFace模型 有几个主要特点:
docker
pull
image
.
sourcefind
.
cn
:
5000
/
dcu
/
admin
/
base
/
custom
:
ort1
.
14.0
_migraphx3
.
0.0
-
dtk22
.
10.1
```
###
推理示例
###
设置Python环境变量
RetinaFace模型的推理示例程序是RetinaFace_infer_migraphx.py,进入python文件夹使用如下命令运行该推理示例:
```
export PYTHONPATH=/opt/dtk/lib:$PYTHONPATH
```
### 安装依赖
```
# 进入python示例目录
...
...
@@ -34,8 +38,13 @@ cd <path_to_retinaface_migraphx>/Python
# 安装依赖
pip install -r requirements.txt
```
### 运行示例
RetinaFace模型的推理示例程序是RetinaFace_infer_migraphx.py,在python目录下使用如下命令运行该推理示例:
# 运行程序
```
python RetinaFace_infer_migraphx.py
```
...
...
@@ -45,9 +54,15 @@ python RetinaFace_infer_migraphx.py
## C++版本推理
下面介绍如何运行C++代码示例,具体推理代码解析,在Doc/Tutorial_Cpp.md目录中有详细说明。
下面介绍如何运行C++代码示例,C++示例的详细说明见Doc目录下的Tutorial_Cpp.md。
### 下载镜像
在光源中下载MIGraphX镜像:
参考Python版本推理中的构建安装,在光源中拉取推理的docker镜像。
```
docker pull image.sourcefind.cn:5000/dcu/admin/base/custom:ort1.14.0_migraphx3.0.0-dtk22.10.1
```
### 安装Opencv依赖
...
...
@@ -92,7 +107,7 @@ export LD_LIBRARY_PATH=<path_to_retinaface_migraphx>/depend/lib/:$LD_LIBRARY_PAT
source ~/.bashrc
```
###
推理
示例
###
运行
示例
成功编译RetinaFace工程后,执行如下命令运行该示例:
...
...
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