Replies: 1 comment 2 replies
-
Anyone? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to check whether focal loss improves the training of my network. Just replacing CrossEntropyLoss by FocalLoss leads to an error.
When I set
use_focal_loss = True
I get:
ValueError: logits and target ndim must match, got logits=2 target=1.
If I also add at the end of
forward
:the error message is unchanged.
Beta Was this translation helpful? Give feedback.
All reactions