faustomilletari/VNet

why filtering of the ground truth?

RSly opened this issue · 1 comments

RSly commented

hi,

I see in here

self.gt = (self.gt > 0.5).astype(dtype=np.float32)

that you use a threshold for GT, why is that?

because due to augmentation we deform the GT and therefore we interpolate. the GT, as a result, is not binary any longer. also sometimes binary GT are represented with 0 and 255. in this way one avoids problems because the operator > will give back 0 and 1 when its result is interpreted as integer