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
UNet_migraphx
Commits
ad93941f
Commit
ad93941f
authored
Jun 19, 2023
by
liucong
Browse files
完善工程
parent
86d18c5d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
18 deletions
+0
-18
CMakeLists.txt
CMakeLists.txt
+0
-3
README.md
README.md
+0
-15
~$README.md
~$README.md
+0
-0
No files found.
CMakeLists.txt
View file @
ad93941f
...
...
@@ -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 @
ad93941f
...
...
@@ -39,8 +39,6 @@ pip install -r requirements.txt
### 运行示例
在Python目录下执行如下命令运行该示例程序:
```
python
python
Unet
.
py
```
...
...
@@ -68,11 +66,6 @@ cd <path_to_unet_migraphx>
sh
.
/
3
rdParty
/
InstallOpenCVDependences
.
sh
```
### 修改CMakeLists.txt
如果使用ubuntu系统,需要修改CMakeLists.txt中依赖库路径:
将"${CMAKE_CURRENT_SOURCE_DIR}/depend/lib64/"修改为"${CMAKE_CURRENT_SOURCE_DIR}/depend/lib/"
### 安装OpenCV并构建工程
...
...
@@ -84,18 +77,10 @@ rbuild build -d depend
将依赖库依赖加入环境变量LD_LIBRARY_PATH,在~/.bashrc中添加如下语句:
**Centos**
:
```
export LD_LIBRARY_PATH=<path_to_unet_migraphx>/depend/lib64/:$LD_LIBRARY_PATH
```
**Ubuntu**
:
```
export LD_LIBRARY_PATH=<path_to_unet_migraphx>/depend/lib/:$LD_LIBRARY_PATH
```
然后执行:
```
...
...
~$README.md
0 → 100644
View file @
ad93941f
File added
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