-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Adding an assert or a flag between Double and Float type #527
Labels
enhancement
New feature or request
Comments
What do you mean by "S1 loss expects double"? Do you mean SmoothL1Loss and CrossEntropyLoss expects double? What kind of error are you getting without the change? |
(the CrossEntropyLoss) The error without the change:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For people who won't use docker but want to do it locally the crucial line is: line 51 in SSD/train.py
from
ploc, plabel = ploc.float(), plabel.float()
to
ploc, plabel = ploc.double(), plabel.double()
Related to local deployment with stable version of pytorch (S1 loss expects double, no float)
The text was updated successfully, but these errors were encountered: