-
Notifications
You must be signed in to change notification settings - Fork 518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeError: Trying to create tensor with negative dimension #260
Comments
Hi there, I got an error message same as you on I don't know the total reason for error, but I can train my dataset on this method. Hope can halp you. My env:
|
I'm not sure about batch size, because it happens after a some number of epochs. Let's say it has been training fine and testing fine for 15 epochs and then suddenly it throws this error. Also it feels that the value is a box coordinate and it should not be that high. |
Update: I debug the code.
You can try to debug the code when you train your models, In the 350 line, you can see the boxes's size variable is a large, but boxes(350 line) and box(321 line) is float32 and float16 type on your GPU, so I think the error is happended in here. My solution:
This method can eliminate this error. |
Did it help? |
Yes, The method can be help me. I used my dataset on YOLOR. |
Hi there,
while training I get the following error at test stage after some number of epochs:
My env:
The text was updated successfully, but these errors were encountered: