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

ValueError: NULL pointer access / CUDA Error #33

Closed husseinpasha closed 4 years ago

husseinpasha commented 4 years ago

Hi everyone, I have got a very bad problem and any help would be very much appreciated. I am trying to run this program on Jetson TX2. The Jetpack version is 4.4 and I haven't installed OpenCV on the Jetson from source nor I havn't run sudo apt install pkg-config libopencv-dev. I have no problem detecting the images though. Also _darkentvideo.py works. But whenever I try to run _darknetzed.py I get the below error. I use yolov3. While when I use ylov3-tiny weights the programs works for a few seconds and then gives the same error again.

_Traceback (most recent call last): File "darknet_zed.py", line 482, in main(sys.argv[1:]) File "darknet_zed.py", line 441, in main detections = detect(netMain, metaMain, image, thresh) File "darknet_zed.py", line 247, in detect if dets[j].prob[i] > 0: ValueError: NULL pointer access

Finally when I run _./uselib data/coco.names cfg/yolov3.cfg yolov3.weights zedcamera I get below error:

CUDA Error: invalid argument CUDA Error: invalid argument: Success uselib: ./src/utils.c:326: error: Assertion `0' failed. Aborted (core dumped) jetson@jetson-desktop_

Shame-fight commented 4 years ago

For the first point, I have the same error in ubuntu16.04, CUDA10, zed_sdk3.2.2. when I use ylov3-tiny weights the programs works for a few seconds and gives the same error: INFO:__main__:person: 33.0% INFO:__main__:FPS: 38.78371830673349 Traceback (most recent call last): File "darknet_zed.py", line 479, in <module> main(sys.argv[1:]) File "darknet_zed.py", line 438, in main detections = detect(netMain, metaMain, image, thresh) File "darknet_zed.py", line 246, in detect if dets[j].prob[i] > 0: ValueError: NULL pointer access I use the ./uselib... command without any problem, and yolov3-tiny can run normally. By the way: Can I use zed on usb2.0, is there any way to do it? @husseinpasha @Poutsh @nesnes @adujardin @obraun-sl

Shame-fight commented 4 years ago

This problem occurs when a person is detected

husseinpasha commented 4 years ago

Same for me! Actually ylov3-tiny just detects the person and as soon as it does that the program shuts down! @Shame-fight

rykymai commented 4 years ago

Did you solve it?

caffreyu commented 3 years ago

I got the same NULL pointer access error and the same error message. Does anyone have some clues about it?

niemiaszek commented 3 years ago

@caffreyu It is solved by pull #37