Image_Segmentation icon indicating copy to clipboard operation
Image_Segmentation copied to clipboard

you can change TP and FN like this. TP = ((SR==1).byte()+(GT==1).byte())==2 .FN = ((SR==0).byte()+(GT==1).byte())==2.

Open jiudawn opened this issue 3 years ago • 4 comments

you can change TP and FN like this. TP = ((SR==1).byte()+(GT==1).byte())==2 .FN = ((SR==0).byte()+(GT==1).byte())==2.a1==

Originally posted by @wellfrogliu in https://github.com/LeeJunHyun/Image_Segmentation/issues/58#issuecomment-664729127

problem solved!

jiudawn avatar Sep 16 '20 10:09 jiudawn

SP = float(torch.sum(TN))/(float(torch.sum(TN+FP)) + 1e-6) should also change "torch.sum(TN+FP)" to torch.sum(TN) + torch.sum(FP)

jiudawn avatar Sep 16 '20 14:09 jiudawn

Hello! I can't get the score of JS and DC, JS=0, DC=0. How to solve this problem?

rgd66 avatar Oct 13 '20 06:10 rgd66

Hello! I can't get the score of JS and DC, JS=0, DC=0. How to solve this problem?

you can change it this way. Inter=torch.sum((SR.byte()+GT.byte())==2). the rest can be done in the same manner.

WAHSIM avatar Nov 27 '20 09:11 WAHSIM

Thanks!

lifuguan avatar Feb 04 '21 14:02 lifuguan