From ae21d40e2b8058cfd9b072afdc609b25a9fd5c06 Mon Sep 17 00:00:00 2001 From: jario Date: Sun, 26 Nov 2023 21:26:27 +0800 Subject: [PATCH] fix intel building sh --- CMakeLists.txt | 2 +- algorithm/veri/sv_veri_det.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c2986df..aeb6116 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -309,7 +309,7 @@ if(USE_CUDA) RUNTIME DESTINATION bin ) elseif(PLATFORM STREQUAL "X86_INTEL") - install(TARGETS sv_world + install(TARGETS sv_gimbal sv_world LIBRARY DESTINATION lib ) endif() diff --git a/algorithm/veri/sv_veri_det.cpp b/algorithm/veri/sv_veri_det.cpp index bf12630..17cba0d 100644 --- a/algorithm/veri/sv_veri_det.cpp +++ b/algorithm/veri/sv_veri_det.cpp @@ -17,7 +17,9 @@ namespace sv VeriDetector::VeriDetector() { +#ifdef WITH_CUDA this->_cuda_impl = new VeriDetectorCUDAImpl; +#endif } VeriDetector::~VeriDetector() { @@ -96,7 +98,7 @@ namespace sv #ifdef WITH_CUDA std::vector output_labels; roiCNN(input_rois_, output_labels); -#endif + // auto t1 = std::chrono::system_clock::now(); // tgts_.setFPS(1000.0 / std::chrono::duration_cast(t1 - this->_t0).count()); // this->_t0 = std::chrono::system_clock::now(); @@ -108,6 +110,7 @@ namespace sv tgt.sim_score = output_labels[1]; // tgts_.targets.push_back(tgt); } +#endif } void VeriDetector::getSubwindow(cv::Mat &dstCrop, cv::Mat &srcImg, int originalSz, int resizeSz)