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

关于传统算法指标计算问题 #5

Open
Joazs opened this issue May 23, 2023 · 2 comments
Open

关于传统算法指标计算问题 #5

Joazs opened this issue May 23, 2023 · 2 comments

Comments

@Joazs
Copy link

Joazs commented May 23, 2023

张博士您好,我在计算红外小目标检测传统算法IPI的时候遇到了问题。
我利用混淆矩阵计算指标,发现计算出来的IoU与nIoU是一样。因为IoU=tp/(fn+fp+tp),nIoU=tp/(t+p-tp)。公式表示是一样的,我感觉我算出来的是nIoU。
请问您可以教教我,如何计算红外小目标检测传统算法的IoU与nIoU吗?不胜感激。。。

@Tianfang-Zhang
Copy link
Owner

您好,IoU的定义的确是IoU=tp/(fn+fp+tp),nIoU出现于ACM的论文中nIoU=1/n * \sum tp/(fn+fp+tp),即求IoU后求均值。

@Joazs
Copy link
Author

Joazs commented May 26, 2023

感谢您的答复。这里IoU=tp/(fn+fp+tp)计算完所有测试样本后,tp,fn,fp的总数吗?
而nIoU则是每个测试样本先算一次IoU最后再除以测试样本总数?

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

2 participants