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
crnn_migraphx
Commits
7e86e0a4
Commit
7e86e0a4
authored
Jun 19, 2023
by
shizhm
Browse files
完善文档
parent
453f511c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
28 deletions
+11
-28
CMakeLists.txt
CMakeLists.txt
+0
-3
README.md
README.md
+11
-25
No files found.
CMakeLists.txt
View file @
7e86e0a4
...
...
@@ -26,10 +26,7 @@ set(LIBRARY opencv_core
opencv_imgproc
opencv_imgcodecs
opencv_dnn
migraphx_ref
migraphx
migraphx_c
migraphx_device
migraphx_gpu
migraphx_onnx
)
link_libraries
(
${
LIBRARY
}
)
...
...
README.md
View file @
7e86e0a4
...
...
@@ -64,22 +64,8 @@ a-----v--a-i-l-a-bb-l-e--- => available
docker pull image.sourcefind.cn:5000/dcu/admin/base/custom:ort1.14.0_migraphx3.0.0-dtk22.10.1
```
### 安装Opencv依赖
```
python
cd
<
path_to_migraphx_samples
>
sh
.
/
3
rdParty
/
InstallOpenCVDependences
.
sh
```
### 修改CMakeLists.txt
-
如果使用ubuntu系统,需要修改CMakeLists.txt中依赖库路径:
将"${CMAKE_CURRENT_SOURCE_DIR}/depend/lib64/"修改为"${CMAKE_CURRENT_SOURCE_DIR}/depend/lib/"
-
**MIGraphX2.3.0及以上版本需要c++17**
### 安装OpenCV并构建工程
### 构建工程
```
rbuild build -d depend
...
...
@@ -89,18 +75,10 @@ rbuild build -d depend
将依赖库依赖加入环境变量LD_LIBRARY_PATH,在~/.bashrc中添加如下语句:
**Centos**
:
```
export LD_LIBRARY_PATH=<path_to_crnn_migraphx>/depend/lib64/:$LD_LIBRARY_PATH
```
**Ubuntu**
:
```
export LD_LIBRARY_PATH=<path_to_crnn_migraphx>/depend/lib/:$LD_LIBRARY_PATH
```
然后执行:
```
...
...
@@ -109,7 +87,15 @@ source ~/.bashrc
### 运行示例
成功编译CRNN工程后,在build目录下输入如下命令运行该示例:
成功编译CRNN工程后,执行如下命令运行该示例:
```
# 进入crnn migraphx工程根目录
cd <path_to_crnn_migraphx>
# 进入build目录
cd build/
```
1.
静态推理
...
...
@@ -133,7 +119,7 @@ a-----v--a-i-l-a-bb-l-e--- => available
# 开启环境变量
export MIGRAPHX_DYNAMIC_SHAPE=1
# 执行动态推理
# 执行动态推理
示例程序
./CRNN 1
```
...
...
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