We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
Thanks for your contribution and work. But I have the problem of "IW_MaxSquareloss":
"IW_MaxSquareloss" error: for: loss = -torch.sum((torch.pow(prob, 2)weights)[mask]) / (batch_sizeself.num_class)
torch.pow(prob, 2) and weights
RuntimeError: The size of tensor a (4) must match the size of tensor b (2) at non-singleton dimension 1
The text was updated successfully, but these errors were encountered:
Hi, have you solved the problem, I met the same error...
Sorry, something went wrong.
weights means the weight values to be applied to each pixel of the label(width, hight)
weights
So, I tried below to fix the error
weights = weights.repeat(19,1,1,1).transpose(0,1) ## add this line loss = -torch.sum((torch.pow(prob, 2)*weights)[mask]) / (batch_size*self.num_class)
Is it right?? How do you think about it??
No branches or pull requests
Hello,
Thanks for your contribution and work. But I have the problem of "IW_MaxSquareloss":
"IW_MaxSquareloss" error:
for: loss = -torch.sum((torch.pow(prob, 2)weights)[mask]) / (batch_sizeself.num_class)
torch.pow(prob, 2) and weights
RuntimeError: The size of tensor a (4) must match the size of tensor b (2) at non-singleton dimension 1
The text was updated successfully, but these errors were encountered: