Skip to content
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

Questioin on losses.py #37

Open
ZongWei-HUST opened this issue Sep 19, 2022 · 0 comments
Open

Questioin on losses.py #37

ZongWei-HUST opened this issue Sep 19, 2022 · 0 comments

Comments

@ZongWei-HUST
Copy link

Hello, Thank you for sharing your great work!
I noticed that on line 36 of the losses.py file,
coefficients = torch.reciprocal(class_occurence) * torch.numel(label) / (num_of_classes * label.shape[1])
it seems that label.shape[1] should be modified to label.shape[0] here so that the solution is in line with the equation in the paper (HxW), not sure if I understand it correctly? Or is there some detail I'm not noticing?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant