DenseInferenceWrapper icon indicating copy to clipboard operation
DenseInferenceWrapper copied to clipboard

CRF returning all 0's

Open shivin101 opened this issue 8 years ago • 6 comments

I am trying to run this code on a set of OCT images they have scaled down to [0,1] of W,H,D and a probability mask in range[0,1] of W,H,D,L where L=1, I am getting a resultant mask of all 0's irrespective of the parameters I give to the CRF Thanks, any help would be appreciated

shivin101 avatar May 28 '17 03:05 shivin101

Hi @shivin101 , I had some similar results. For some images, it returned 0s, while it returned 1s for others. Have you solved this problem?

FangliangBai avatar Jul 06 '17 15:07 FangliangBai

Hi, I think I also met this problem. If I understand right, the probability mask including a WHDL matrix, where L means L different probability mappings of different class. So I construct the label tensor with this idea, but the results are matrix all zeros. Do you guys solve it?

yunghx avatar Jul 15 '17 14:07 yunghx

I'm also facing this issue, @mbickel do you have some test data that can be used to verify our installations are correct?

when running with verbose I get pre premap -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan

[solved] L must be greater than 1, eg. foreground and background channels. @shivin101 I was doing that as well but tried with 1 - labels as the background and everything works

RFHO-BDSS avatar Feb 23 '18 13:02 RFHO-BDSS

same problem here. Do you solve it?

UpCoder avatar Jun 27 '18 14:06 UpCoder

I plan to try RFHO-BDSS's suggestion as I am also obtaining all zer0s. I will let you know my results.

keesh0 avatar Jul 10 '19 16:07 keesh0

I am confused what the feature_tensor should be ? Mine is (W, H, D, 1) where voxels = 0 for background, and = 1 for liver.

keesh0 avatar Jul 12 '19 00:07 keesh0