Convert yolov4 model to tensorrt get "Wrong" error #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi, thank for this awesome project.

I have a question about converting yolov4 model.
I try run
test_yolo4with yolo-608 config and get red lineWrongsin log as shown below:Line
Wrongwhat dose it mean?Thanks for the repo again.
Hi,
It means that the first yolo output layer have 102 wrong values respect to the output of darknet.
We have the same errors, so I need to investigate, the strange thing is that the "correct" values from darknet are NaN.
Since the wrong values are all NaN In the correct version is more a problem of darknet. The final bboxs should not be affected anyway.
The difference in result could be due to different implementation. The CUDNN version should not be to much different from darknet, the main difference is that that they uses a custom implementation of batchnorm and not the one from CUDNN.
Hi, thank you.
I will check it.
Hi, Thank you for your great repo.
I also meet the same error while converting Yolov4 model got trained from AlexeyAB/Darknet repo. I trying to test TensorRT model that converted but it seem I didn't get the correct result but on AlexeyAB I able to get correct result.
What you mean for correct result?
I'm sorry for confused message. I mean I test my own Yolov4 model via
./darknet detector test .....command and I got all correct object detected but when I export that model to TensorRT format and test it by./demo yolo4_fp32.rt video.mp4 yI didn't get any object.It could be my reasons for this problem
#29 is trying to do the same
My issue have been solved because of I forgot to change the path of cfg file in
tests/darknet/yolo4.cpp.@ceccocats Thank you for your support.
Hi@ceccocats
By your comment, I understand that
Nansis the bug of darknet, andNansdon't affect the inference result by./demo yolo4_fp32.rt video.mp4 y ....Is that right?
Hi @beizhengren, that is right.
@mive93 Hi, thank you so much!
Have such problem at jetson xavier on converting fp16/int8 mode (fp32 ok). It can run converted on another machine models (at any mode: fp32, fp16), but cannot convert models to reduced precision. Maybe it caused by tensorrt 7. It was fixed by updating tkDNN from git.
@teplofizik Now I convert the yolo4 model to fp16, I still got this problem, but I can run the demo currently.