Replies: 7 comments
-
Getting the same error so far, getting exactly the same error..
But that didn't solve the error lol Here is the stuff I'm currently running with - |
Beta Was this translation helpful? Give feedback.
-
I'm finding the exact same issue, the YOLOv5 model itself is able to work with inputs of different sizes, however exporting it to TensorRT seems to enforce a 640x640 input size. Python 3.10 |
Beta Was this translation helpful? Give feedback.
-
same error |
Beta Was this translation helpful? Give feedback.
-
Guys, I am having the same error. |
Beta Was this translation helpful? Give feedback.
-
I had the same problem, but I solved it, my suggestion is that you can set multiple breakpoints to see. The reason why I caused this problem is that I was building the flask web page and used the code of the previous yolov5. The loadimage function used was the code in the original dataset, and the reasoning of the latest version of yolo5-7.0 was used. My solution is , replace the loadimage function, and use the loadimage function in the latest version of dataloader, hoping to help you. |
Beta Was this translation helpful? Give feedback.
-
I am using YOLOv8 and I have the same problem, do you have any solution? |
Beta Was this translation helpful? Give feedback.
-
U need to make the resolution of your input 640x640. Just make transform function:
or retrain the model for a lower one. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Assertion in common.py line 537.
I've searched as much as I could to find something similar but I have had no luck.
I'm new to this world and I don't really know what this error means exactly or how to fix this? Is it a mismatch of training image size vs what it's expecting? From the error are my images not dynamic?
I trained my model using the --img 640 flag.
I exported to TensorRT and saw the following in the output of the terminal:
But when I go to use the model I get the above exception.
It's hit with this line in the script
Where screenshot is:
Is this the screenshot size being wrong? Or is there something else I've done wrong/need to look at?
Python 3.9
CUDA 11.7.1
cuDNN 8.6.0
Windows 11
I did see this when exporting if that's something to look at
TensorRT was linked against cuDNN 8.6.0 but loaded cuDNN 8.5.0
Thanks
Beta Was this translation helpful? Give feedback.
All reactions