Closed jaabaal closed 3 years ago
The "yolov4-tiny-vgg-16" model you're using has a different architecture from the original "yolov4-tiny" model. It does not contain FPN, i.e. no "upsample" layer.
You'll have to modify the source code by yourself to get it to work.
Here are the code pieces that you'd modify:
Replace the above with the following:
output_tensor_shapes = [
[c, h // 16, w // 16], [c, h // 32, w // 32]]
Replace the above with the following:
yolo_whs = [
[w // 16, h // 16], [w // 32, h // 32]]
Hello @jkjung-avt Sir. The following changes worked and my code is working. Thank you very much for your help! I had made the changes in the yolo_to_onnx.py file but did not know about the one in plugins.py. Once again, thank you very much. :)
Hi @jkjung-avt sir! I have modified the configuration file of the yolov4-tiny.cfg and I am trying to use the onnx_to_trt.py script to serialize my .onnx model to .trt. However I am getting the above specified error. Can you please help me with that? I am attaching my config file for your reference as well. yolov4-tiny-vgg-16.cfg.zip