mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00

* Refactor PaddleSeg with preprocessor && postprocessor * Fix bugs * Delete redundancy code * Modify by comments * Refactor according to comments * Add batch evaluation * Add single test script * Add ppliteseg single test script && fix eval(raise) error * fix bug * Fix evaluation segmentation.py batch predict * Fix segmentation evaluation bug * Fix evaluation segmentation bugs * Update segmentation result docs * Update old predict api and DisableNormalizeAndPermute * Update resize segmentation label map with cv::INTER_NEAREST * Add Model Clone function for PaddleClas && PaddleDet && PaddleSeg * Add multi thread demo * Add python model clone function * Add multi thread python && C++ example * Fix bug * Update python && cpp multi_thread examples * Add cpp && python directory * Add README.md for examples * Delete redundant code Co-authored-by: Jason <jiangjiajun@baidu.com>
15 lines
483 B
CMake
15 lines
483 B
CMake
PROJECT(multi_thread_demo C CXX)
|
|
CMAKE_MINIMUM_REQUIRED (VERSION 3.10)
|
|
|
|
# 指定下载解压后的fastdeploy库路径
|
|
option(FASTDEPLOY_INSTALL_DIR "Path of downloaded fastdeploy sdk.")
|
|
|
|
include(${FASTDEPLOY_INSTALL_DIR}/FastDeploy.cmake)
|
|
|
|
# 添加FastDeploy依赖头文件
|
|
include_directories(${FASTDEPLOY_INCS})
|
|
|
|
add_executable(multi_thread_demo ${PROJECT_SOURCE_DIR}/multi_thread.cc)
|
|
# 添加FastDeploy库依赖
|
|
target_link_libraries(multi_thread_demo ${FASTDEPLOY_LIBS} pthread)
|