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
3d1045d2
Commit
3d1045d2
authored
Aug 22, 2024
by
liucong
Browse files
修改readme
parent
69503044
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
CMakeLists.txt
CMakeLists.txt
+1
-1
README.md
README.md
+11
-1
No files found.
CMakeLists.txt
View file @
3d1045d2
...
@@ -17,7 +17,7 @@ set(INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/Src/
...
@@ -17,7 +17,7 @@ set(INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/Src/
include_directories
(
${
INCLUDE_PATH
}
)
include_directories
(
${
INCLUDE_PATH
}
)
# 添加依赖库路径
# 添加依赖库路径
set
(
LIBRARY_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/depend/lib
64
/
set
(
LIBRARY_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/depend/lib/
$ENV{DTKROOT}/lib/
)
$ENV{DTKROOT}/lib/
)
link_directories
(
${
LIBRARY_PATH
}
)
link_directories
(
${
LIBRARY_PATH
}
)
...
...
README.md
View file @
3d1045d2
...
@@ -89,6 +89,16 @@ python RetinaFace_infer_migraphx.py
...
@@ -89,6 +89,16 @@ python RetinaFace_infer_migraphx.py
### C++版本推理
### C++版本推理
当使用操作系统不一样时,CMakeList需要作相应的修改:
```
# ubuntu操作系统
${CMAKE_CURRENT_SOURCE_DIR}/depend/lib64/ 修改为 ${CMAKE_CURRENT_SOURCE_DIR}/depend/lib/
# centos操作系统
${CMAKE_CURRENT_SOURCE_DIR}/depend/lib/ 修改为 ${CMAKE_CURRENT_SOURCE_DIR}/depend/lib64/
```
下面介绍如何运行C++代码示例,C++示例的详细说明见Doc目录下的Tutorial_Cpp.md。
下面介绍如何运行C++代码示例,C++示例的详细说明见Doc目录下的Tutorial_Cpp.md。
...
@@ -103,7 +113,7 @@ rbuild build -d depend
...
@@ -103,7 +113,7 @@ rbuild build -d depend
将依赖库依赖加入环境变量LD_LIBRARY_PATH,在~/.bashrc中添加如下语句:
将依赖库依赖加入环境变量LD_LIBRARY_PATH,在~/.bashrc中添加如下语句:
```
```
export LD_LIBRARY_PATH=<path_to_retinaface_migraphx>/depend/lib
64
/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=<path_to_retinaface_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