Skip to content

Question about arguments class #1

Closed
@marwanabb

Description

@marwanabb

Hi @febrianrachmadi ,

Thank you for sharing the implementation of the instance losses.

I have a question regarding the following class arguments :
image

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions