FocalLoss binary not working, is it because of masks? #434
Unanswered
Harsh-Gill
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying foccal loss but it doesnt work.
ValueError: Target size (torch.Size([524288])) must be the same as input size (torch.Size([1048576]))
This error is shown but when i try the torch.nn.CrossEntropy(pred,true) , it works fine.
Is this because FocalLoss like other losses dont work for mask-based learning?
Beta Was this translation helpful? Give feedback.
All reactions