ceccocats / tkDNN

Deep neural network library and toolkit to do high performace inference on NVIDIA jetson platforms
GNU General Public License v2.0
718 stars 208 forks source link

Yolo3Detection segfault on cv::resize - Jetpack 5.0 #300

Closed ckurtz22 closed 1 year ago

ckurtz22 commented 1 year ago

Running the Yolo3Detection class in Jetpack 5.0. When I call Yolo3Detection::update, I get a segfault, as shown in gdb below: image

ckurtz22 commented 1 year ago

Seems the issue is that jetpack has installed 2 versions of OpenCV, 4.5.4 and 4.2.0. I'm using tkDNN inside a larger CMake project, and that CMake project is targeting OpenCV 4.2.0 (cv_bridge from ROS Noetic), and tkDNN is targeting the OpenCV 4.5.4 version. Struggling to find a way to make these packages play nice

ckurtz22 commented 1 year ago

Was able to resolve it by manually building and installing opencv and then running the uninstall make target to remove the 4.5.4 files, so only 4.2.0 was left in the system. Now tkDNN targets the 4.2.0 opencv

ChanJoon commented 7 months ago

your thread was helpful for me. I resolve this issue by manually building cv_bridge with my OpenCV version. (In my case 4.8.0 and 4.2.0(noetic))