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
yolov7_migraphx
Commits
023305b2
Commit
023305b2
authored
Jun 19, 2023
by
shizhm
Browse files
完善示例
parent
37f41c8f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
26 deletions
+1
-26
CMakeLists.txt
CMakeLists.txt
+0
-3
README.md
README.md
+1
-23
No files found.
CMakeLists.txt
View file @
023305b2
...
@@ -26,10 +26,7 @@ set(LIBRARY opencv_core
...
@@ -26,10 +26,7 @@ set(LIBRARY opencv_core
opencv_imgproc
opencv_imgproc
opencv_imgcodecs
opencv_imgcodecs
opencv_dnn
opencv_dnn
migraphx_ref
migraphx
migraphx
migraphx_c
migraphx_device
migraphx_gpu
migraphx_gpu
migraphx_onnx
)
migraphx_onnx
)
link_libraries
(
${
LIBRARY
}
)
link_libraries
(
${
LIBRARY
}
)
...
...
README.md
View file @
023305b2
...
@@ -65,22 +65,8 @@ python YoloV7_infer_migraphx.py \
...
@@ -65,22 +65,8 @@ python YoloV7_infer_migraphx.py \
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
```
```
### 安装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
rbuild build -d depend
...
@@ -90,18 +76,10 @@ rbuild build -d depend
...
@@ -90,18 +76,10 @@ rbuild build -d depend
将依赖库依赖加入环境变量LD_LIBRARY_PATH,在~/.bashrc中添加如下语句:
将依赖库依赖加入环境变量LD_LIBRARY_PATH,在~/.bashrc中添加如下语句:
**Centos**
:
```
```
export LD_LIBRARY_PATH=<path_to_yolov7_migraphx>/depend/lib64/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=<path_to_yolov7_migraphx>/depend/lib64/:$LD_LIBRARY_PATH
```
```
**Ubuntu**
:
```
export LD_LIBRARY_PATH=<path_to_yolov7_migraphx>/depend/lib/:$LD_LIBRARY_PATH
```
然后执行:
然后执行:
```
```
...
...
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