Closed
Description
Hi @febrianrachmadi ,
Thank you for sharing the implementation of the instance losses.
I have a question regarding the following class arguments :
By default num_out_chn and object_chn are set to 1 for a two-class segmentation problem (background vs foreground). But how to handle them for a multi-class problem. Let's say a three-class : background, organ and tumor. Should N equal 2 or 3 in this case ? In the notebook example you provided it's N=1 while there is two classes : background and foreground.
Moreover, the tensors are like that in my case (using MONAI data loader this configuration works well using MONAI losses) :
- outputs (it's my images after passing them to the model) : torch.Size([16, 3, 64, 64, 64]) so BNWHD with N=3
- labels : torch.Size([16, 1, 64, 64, 64]) so B1WHD format
Could you provide more information on how to setup num_out_chn and object_chn ?
Metadata
Metadata
Assignees
Labels
No labels