stereolabs / zed-yolo

3D Object detection using Yolo and the ZED in Python and C++
https://www.stereolabs.com/
MIT License
159 stars 68 forks source link

darknet crashes with ZED1 camera and ZEDSDK 3.4.2 #45

Closed mtbsteve closed 3 years ago

mtbsteve commented 3 years ago

I am getting the following error when I run yolo with the following command: LD_LIBRARY_PATH=./:$LD_LIBRARY_PATH ./uselib data/coco.names cfg/yolov3.cfg yolov3.weights zed_camera The error is: input image or video filename: [ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (711) open OpenCV | GStreamer warning: Error opening bin: no element "zed_camera" All yolo examples using a standard webcam or images as input work well.

I am running Jetpack 4.4 with the ZED SDK 3.4.2, CUDA 10.2.89, OpenCV 4.1.1 and a ZED1 camera connected.

mtbsteve commented 3 years ago

I used the wrong Makefile settings now it works with these settings: GPU=1 CUDNN=1 CUDNN_HALF=0 OPENCV=1 AVX=0 OPENMP=0 LIBSO=1 ZED_CAMERA=1 ZED_CAMERA_v2_8=0 ARCH= -gencode arch=compute_62,code=[sm_62,compute_62]