forked from PaddlePaddle/FastDeploy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Model] 更新SCRFD模型demo以及文档 (PaddlePaddle#1108)
* 更新scrfd * 更新scrfd
- Loading branch information
1 parent
9d28896
commit dd01b3c
Showing
7 changed files
with
78 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,15 @@ | ||
CMAKE_MINIMUM_REQUIRED(VERSION 3.10) | ||
project(rknpu_test) | ||
|
||
set(CMAKE_CXX_STANDARD 14) | ||
PROJECT(infer_demo C CXX) | ||
CMAKE_MINIMUM_REQUIRED (VERSION 3.10) | ||
|
||
# 指定下载解压后的fastdeploy库路径 | ||
set(FASTDEPLOY_INSTALL_DIR "thirdpartys/fastdeploy-0.7.0") | ||
|
||
include(${FASTDEPLOY_INSTALL_DIR}/FastDeployConfig.cmake) | ||
include_directories(${FastDeploy_INCLUDE_DIRS}) | ||
add_executable(rknpu_test infer.cc) | ||
target_link_libraries(rknpu_test | ||
${FastDeploy_LIBS} | ||
) | ||
|
||
set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/build/install) | ||
|
||
install(TARGETS rknpu_test DESTINATION ./) | ||
|
||
install(DIRECTORY model DESTINATION ./) | ||
install(DIRECTORY images DESTINATION ./) | ||
|
||
file(GLOB FASTDEPLOY_LIBS ${FASTDEPLOY_INSTALL_DIR}/lib/*) | ||
message("${FASTDEPLOY_LIBS}") | ||
install(PROGRAMS ${FASTDEPLOY_LIBS} DESTINATION lib) | ||
option(FASTDEPLOY_INSTALL_DIR "Path of downloaded fastdeploy sdk.") | ||
|
||
file(GLOB ONNXRUNTIME_LIBS ${FASTDEPLOY_INSTALL_DIR}/third_libs/install/onnxruntime/lib/*) | ||
install(PROGRAMS ${ONNXRUNTIME_LIBS} DESTINATION lib) | ||
include(${FASTDEPLOY_INSTALL_DIR}/FastDeploy.cmake) | ||
|
||
install(DIRECTORY ${FASTDEPLOY_INSTALL_DIR}/third_libs/install/opencv/lib DESTINATION ./) | ||
# 添加FastDeploy依赖头文件 | ||
include_directories(${FASTDEPLOY_INCS}) | ||
|
||
file(GLOB PADDLETOONNX_LIBS ${FASTDEPLOY_INSTALL_DIR}/third_libs/install/paddle2onnx/lib/*) | ||
install(PROGRAMS ${PADDLETOONNX_LIBS} DESTINATION lib) | ||
add_executable(infer_demo ${PROJECT_SOURCE_DIR}/infer.cc) | ||
|
||
file(GLOB RKNPU2_LIBS ${FASTDEPLOY_INSTALL_DIR}/third_libs/install/rknpu2_runtime/RK3588/lib/*) | ||
install(PROGRAMS ${RKNPU2_LIBS} DESTINATION lib) | ||
# 添加FastDeploy库依赖 | ||
target_link_libraries(infer_demo ${FASTDEPLOY_LIBS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
mean: | ||
- | ||
- 128.5 | ||
- 128.5 | ||
- 128.5 | ||
std: | ||
- | ||
- 128.5 | ||
- 128.5 | ||
- 128.5 | ||
model_path: ./scrfd_500m_bnkps_shape640x640.onnx | ||
outputs_nodes: | ||
do_quantization: False | ||
dataset: "./dataset.txt" | ||
output_folder: "./" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters