I have darknet yolov4-tiny model trained on 5 objects. I was using tensorrt 6 and tkdnn repo to run inference. Everything was perfect.
Now, I want to use tensorrt 8 and run the inference.
I am trying to convert darknet yolov4-tiny model to onnx and to TensorRT 8.
But unfortunately, I am not able to do it properly.
Could you please let me know How I can perform inference on it ??
You can refer below link for all the supported operators list, in case any operator is not supported you need to create a custom plugin to support that operation
Also, request you to share your model and script if not shared already so that we can help you better.
Meanwhile, for some common errors and queries please refer to below link:
Sorry for the delayed response, we have gone through the code, looks normal.
Could you please share actual error logs you’re facing and if possible minimal issue repro for better debugging.
@spolisetty@NVES I tried this repo to convert to onnx model.
It takes by default 64 batchsize:
So, it take 1.5 - 2 hours to built the engine and inference time is almost 0.7 fps (way too slow than expected.)
Normally it should take batch size 1. but it is not working properly.
I tried to change the batch size to 1 in the config file and generated onnx model.
Then used trtexec to create an engine.
Then I used my script given above to do inference.
But I get smaller boxes and too many boxes (labels and probability is correct but only the box dimensions are not correct). Boxes are not around the object exactly instead they are small and tiny somewhere on the input image.
Is there something wrong the with calculation part ?? or engine creation part ?? or onnx conversion with batch size 1.
Could you provide me the command to be used to create engine with trtexec and required onnx conversion script with batch size 1.