Closed coreeey closed 2 years ago
Dear Coreey, it is hard to comment on this without more detail. What kind of data are you using? What is the diameter of your foreground vessels? Maybe try to increase the number of iterations as a first step and plot the resulting skeletons. Otherwise I would need more specifics.
To be clear we also describe this in the paper. You should always combine cldice-loss with another loss function. Please see the paper for this.
When i use the cldice to train a vessel segmentation network, i find that the cldice keeps 0 all the time.
class softcldice(nn.Module): def init(self, iter=3, smooth = 1.): super(softcldice, self).init() self.iter = iter self.smooth = smooth