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

evalution results of PASCAL-S contain NaN. (results from BASNet) #7

Open
pengqianli opened this issue Oct 2, 2019 · 8 comments
Open

Comments

@pengqianli
Copy link

No description provided.

@pengqianli pengqianli changed the title evalution results of PASCAL-S gets NaN. (BASNet) evalution results of PASCAL-S are NaN. (results from BASNet) Oct 2, 2019
@pengqianli pengqianli changed the title evalution results of PASCAL-S are NaN. (results from BASNet) evalution results of PASCAL-S contain NaN. (results from BASNet) Oct 2, 2019
@zhuguanglueying
Copy link

这个问题是由于图片中无显著物体,导致求Recall时分母为0,得到Nan,求Recall时将分母加上1e-16,防止分母为0.

@StormArcher
Copy link

StormArcher commented Apr 15, 2020

遇到了同样的问题,AFNet

@StormArcher
Copy link

1e-16
请问是这个位置吗?
PreFtem = NumAnd/NumRec;
RecallFtem = NumAnd/(num_obj+1e-16); % 防止出现NaN
FmeasureF = ( ( 1.3* PreFtem * RecallFtem ) / ( .3 * PreFtem + RecallFtem ) );

@StormArcher
Copy link

910997316 QQ能否请教下

@ArcherFMY
Copy link
Owner

是的,有时候真值gtMap里没object

@StormArcher
Copy link

是的,有时候真值gtMap里没object

请问作者你们是这么解决这个问题的,我换了台机器尝试也不行,楼上那个建议加一个小的数好像不行?

@ArcherFMY
Copy link
Owner

是的,有时候真值gtMap里没object

请问作者你们是这么解决这个问题的,我换了台机器尝试也不行,楼上那个建议加一个小的数好像不行?

我是直接把gt中没有object的图片删掉了

@zhuguanglueying
Copy link

我又把代码下载看了看,应该是将performCalcu.m中177行加1e-16,像这样
Pre = targetHist ./ (targetHist + nontargetHist);
Recall = targetHist / (gtPxlNum + 1e-16);
TPR = Recall;
这样求maxF是就不会出错了,至于AUC我没看,可以自己去调试嘛。

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

4 participants