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

ZeroDivisionError: float division by zero #14

Open
AliSharififar opened this issue Mar 17, 2024 · 0 comments
Open

ZeroDivisionError: float division by zero #14

AliSharififar opened this issue Mar 17, 2024 · 0 comments

Comments

@AliSharififar
Copy link

AliSharififar commented Mar 17, 2024

hello
Thank you for the models you provided in the field of semantic segmentation. I encounter this error while training hamnet_van_base_512x512_160k_ade20k model using Custom Dataset. I have two more classes. Separated from the background, I made 20K as the ade20k dataset. In debugging, I saw that the addressing of the data set was correct.
Please help me.
correct_k.mul_(100.0 / target[target != ignore_index].numel())) ZeroDivisionError: float division by zero

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