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

mIoU of semantic segmentation for incorrect Prediction. #553

Open
Gil-TakKong opened this issue Dec 12, 2022 · 0 comments
Open

mIoU of semantic segmentation for incorrect Prediction. #553

Gil-TakKong opened this issue Dec 12, 2022 · 0 comments

Comments

@Gil-TakKong
Copy link

Hi!

I am wondering about mIoU method.
When I calculate mIoU of an image with incorrect prediction, if there are wrong label region, the IoU of the label is nan, not 0.

Here is the example.

Class in Ground Truth : Background, L1, L2
Class in Prediction : Background, L1, L2, L3

(1) mIoU = {IoU(BG) + IoU(L1) + IoU(L2)} / 3
Is it right?

I think, the formular should be
(2) mIoU = {IoU(BG) + IoU(L1) + IoU(L2) + IoU(L3)} / 4

If (1) is right, could you explain about why the IoU of L3 is not included?

Thank you.

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