-
Notifications
You must be signed in to change notification settings - Fork 18
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
loss is nan #2
Comments
One example in the code is a tensor with a batch size of 128, and the result is not nan, so did you use the 'cos' method to calculate the similarity? |
yes. |
You may use soft_plus and logsumexp instead. |
Thanks for the reminder. Have you tested the difference between the two implementations? |
@TinyZeaMays Can you tell me what is the difference between your implement and @qianjinhao 's implement. Cause I think it's true formula for circle loss |
your example was right, but when batch_size was 128, loss was nan, actually it occur error on 36,37th line in circleloss.py.
The text was updated successfully, but these errors were encountered: