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

Dice: The ignore_index 255 is not valid for inputs with 6 classes #2849

Open
robmarkcole opened this issue Nov 28, 2024 · 2 comments
Open

Dice: The ignore_index 255 is not valid for inputs with 6 classes #2849

robmarkcole opened this issue Nov 28, 2024 · 2 comments
Labels
bug / fix Something isn't working help wanted Extra attention is needed v1.6.x

Comments

@robmarkcole
Copy link

🐛 Bug

6 classes, ignore index 255 and

Dice(
    num_classes=num_classes,
    ignore_index=ignore_index,
    average="micro",
)

Error

  - The `ignore_index` 255 is not valid for inputs with 6 classes

Similar to #304

@robmarkcole robmarkcole added bug / fix Something isn't working help wanted Extra attention is needed labels Nov 28, 2024
@Borda
Copy link
Member

Borda commented Nov 29, 2024

is it with the latest version?
and if you could provide full example with sample values

@robmarkcole
Copy link
Author

With torchmetrics==1.6.0

@Borda Borda added the v1.6.x label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug / fix Something isn't working help wanted Extra attention is needed v1.6.x
Projects
None yet
Development

No branches or pull requests

2 participants