Skip to content

Generalised Dice Loss: Python layer #59

Description

@sara-eb

Hi,

I am implementing generalized dice loss python layer,
I have extracted the labels to be treated as binary segmentation problem, Now I have some misunderstanding on background labels, which is 0 values and is the feature map[0] in a subvolume NxCxDxWxH (C stands for class numbers: 5 classes, and D stands for the depth of subvolume).

according to this line for binary segmentation with Blob shape with 2 feature maps, it is clear how to do that, what about generalized dice loss? Because I have 4 extra feature maps for foreground classes. How can I calculate the bottom[0].diff[i,0,:] for the background here?

Your expert opinion is really appreciated
Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions