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's calculation is obviously wrong #4

Open
Frank-Star-fn opened this issue Dec 16, 2022 · 2 comments
Open

Dice's calculation is obviously wrong #4

Frank-Star-fn opened this issue Dec 16, 2022 · 2 comments

Comments

@Frank-Star-fn
Copy link

In the GlaS dataset, your IoU is only 76.73. According to the mathematical definition of IoU and Dice coefficient, your Dice is absolutely impossible to reach 99.09, so your Dice coefficient calculation is obviously wrong. You should check your code implementation of Dice coefficient calculation.

在GlaS数据集里,你的IoU只有76.73,根据IoU和Dice系数的数学定义,你的Dice是绝对不可能达到99.09的,所以你的Dice系数计算显然是错误的。你应该检查一下你关于Dice系数计算这部分的代码实现。

@Frank-Star-fn
Copy link
Author

formula:
IoU=|AB|/(|A|+|B|-|AB|)
Dice=2|AB|/(|A|+|B|)

@Frank-Star-fn
Copy link
Author

with the formula:
IoU=|AB|/(|A|+|B|-|AB|)
Dice=2|AB|/(|A|+|B|)

we can get:
Dice=2*IoU/(1+IoU)

your IoU is 76.73%, so your Dice should be about 86.833%

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