Diffusion-based-Segmentation icon indicating copy to clipboard operation
Diffusion-based-Segmentation copied to clipboard

multi-class segmentation discuss

Open smallboy-code opened this issue 1 year ago • 6 comments

Hi @JuliaWolleb , thank you for your great work. I want to solve the multi-class segmentation problem and I delete the "label = torch.where(label > 0, 1, 0).float()". Now, I got some output looks not well as follows: 2 3 5 6 8 7

So, can you give me some advices about this problem?

smallboy-code avatar Nov 01 '23 08:11 smallboy-code

Hi How did you train this multi-class approach? It seems like you trained on a segmentation mask with a single channel, but different values (0,1,2,3) for the different classes? I suggest you train with one-hot-encoding, i.e., one binary mask for each of the classes.

JuliaWolleb avatar Nov 06 '23 10:11 JuliaWolleb

Yes, I trained on a segmentation mask with a single channel with different values (0,1,2,3) for the different classes. The one binary mask for each of the classes means training on a segmentation mask with three channels with WT,TC and ET?

smallboy-code avatar Nov 06 '23 10:11 smallboy-code

yes exactly, all three classes will have a separate binary channel each.

JuliaWolleb avatar Nov 06 '23 10:11 JuliaWolleb

Yes, I have also try to do this, but I found the finnal output will be like this: 图片1 WT,TC,ET,respectively. I think the results are worse than one channel.

smallboy-code avatar Nov 06 '23 11:11 smallboy-code

Yes, I have also try to do this, but I found the finnal output will be like this: 图片1 WT,TC,ET,respectively. I think the results are worse than one channel.

Hi, I also want to use multi-class segmentation for training, have you solved this problem? @smallboy-code

ZhengChen6 avatar Mar 17 '24 06:03 ZhengChen6

It remains unresolved. @ZhengChen6

smallboy-code avatar Mar 22 '24 02:03 smallboy-code