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 when object is detected #36

Closed rykymai closed 3 years ago

rykymai commented 4 years ago

Schermata 2020-10-28 alle 14 50 12 I have this issuse every time it detects a person, i'm testing it with yolov3-tiny, if i run instead ./uselib data/coco.names cfg/yolov3.cfg yolov3.weights zed_camera it works

rykymai commented 3 years ago

solved

niemiaszek commented 3 years ago

@rykymai how did you solve this?

niemiaszek commented 3 years ago

Okay, I solved it myself. Next time, please, explain the solution, to help people facing the same problem. Solution is provided by AlexeyAB there. You have to change class DETECTION to new format. One used inn darknet_zed.py is outdated. I will prepere pull request, hopefully someone will notice it.

yuxuan-wang-tj commented 2 years ago

@niemiaszek I can't solve this problem, could you give me some details ?

niemiaszek commented 2 years ago

Do you have new version of this repository with my Pull Request? It solved the problem for me and some other people

yuxuan-wang-tj commented 2 years ago

@niemiaszek I have replaced darnet.py in libdarnet with the latest version, and I have changed the class DETECTION in darnet_zed.py to new format. However, The problem still exists .

niemiaszek commented 2 years ago

Do you use Alexey darknet repo for build, libs etc. or do you use the one provided in this repo? Darknet in zed-yolo repo has very old code in it so it might not work with the structure from my PR, didn't test it. I built darknet with instructions from Alexey repo and then changed paths in this zed-yolo repo to match Darknet. I have done this installation month ago and it was working with no problem for me

yuxuan-wang-tj commented 2 years ago

@niemiaszek Thank you very much. I have solved the problem after I followed the method you said. I truly appreciate your timely help.

niemiaszek commented 2 years ago

@yuxuan-wang-tj You are welcome 😄