Open srishkee opened 3 years ago
One possible workaround for anyone experiencing this issue: Convert the Yolo model to Tensorflow using this Github https://github.com/hunglc007/tensorflow-yolov4-tflite and use their scripts for image/video inference. Bounding boxes are displayed correctly.
Description: I was testing the Yolov4 model on a video and discovered a bug. The bounding boxes are offset from the images by 1 frame. The video I am testing on has a very slow fps (~1 FPS) so it is very noticeable.
Command: ./darknet detector demo cfg/coco.data cfg/yolov4.cfg yolov4.weights test.mp4 -out_filename res.avi (Just the regular command to test the pretrained network on a video.)
Platform: Linux
Cases: This bug occurs in all cases. I suspect it was not discovered earlier because most videos use a much higher FPS.
What I have tried: Tinkering with demo.c. But the code is highly interwoven with threads, and it is not clear what is causing the issue.
@AlexeyAB If you are unable to commit the change, please tell me know how to modify the code so I can fix this. Thank you in advance.