mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 16:48:03 +08:00

* [Model] init pp-structurev2-layout code * [Model] init pp-structurev2-layout code * [Model] init pp-structurev2-layout code * [Model] add structurev2_layout_preprocessor * [PP-StructureV2] add postprocessor and layout detector class * [PP-StructureV2] add postprocessor and layout detector class * [PP-StructureV2] add postprocessor and layout detector class * [PP-StructureV2] add postprocessor and layout detector class * [PP-StructureV2] add postprocessor and layout detector class * [pybind] add pp-structurev2-layout model pybind * [pybind] add pp-structurev2-layout model pybind * [Bug Fix] fixed code style * [examples] add pp-structurev2-layout c++ examples * [PP-StructureV2] add python example and docs * [benchmark] add pp-structurev2-layout benchmark support
46 lines
1.5 KiB
CMake
46 lines
1.5 KiB
CMake
PROJECT(infer_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})
|
|
|
|
# PP-OCR
|
|
add_executable(infer_demo ${PROJECT_SOURCE_DIR}/infer.cc)
|
|
# 添加FastDeploy库依赖
|
|
target_link_libraries(infer_demo ${FASTDEPLOY_LIBS})
|
|
|
|
# PPStructure-V2-Table
|
|
add_executable(infer_ppstructurev2_table ${PROJECT_SOURCE_DIR}/infer_ppstructurev2_table.cc)
|
|
# 添加FastDeploy库依赖
|
|
target_link_libraries(infer_ppstructurev2_table ${FASTDEPLOY_LIBS})
|
|
|
|
# Only Det
|
|
add_executable(infer_det ${PROJECT_SOURCE_DIR}/infer_det.cc)
|
|
# 添加FastDeploy库依赖
|
|
target_link_libraries(infer_det ${FASTDEPLOY_LIBS})
|
|
|
|
# Only Cls
|
|
add_executable(infer_cls ${PROJECT_SOURCE_DIR}/infer_cls.cc)
|
|
# 添加FastDeploy库依赖
|
|
target_link_libraries(infer_cls ${FASTDEPLOY_LIBS})
|
|
|
|
# Only Rec
|
|
add_executable(infer_rec ${PROJECT_SOURCE_DIR}/infer_rec.cc)
|
|
# 添加FastDeploy库依赖
|
|
target_link_libraries(infer_rec ${FASTDEPLOY_LIBS})
|
|
|
|
# Only Table
|
|
add_executable(infer_structurev2_table ${PROJECT_SOURCE_DIR}/infer_structurev2_table.cc)
|
|
# 添加FastDeploy库依赖
|
|
target_link_libraries(infer_structurev2_table ${FASTDEPLOY_LIBS})
|
|
|
|
# Only Layout
|
|
add_executable(infer_structurev2_layout ${PROJECT_SOURCE_DIR}/infer_structurev2_layout.cc)
|
|
# 添加FastDeploy库依赖
|
|
target_link_libraries(infer_structurev2_layout ${FASTDEPLOY_LIBS})
|