Skip to content

For single class segmentation , how to use num_classes , and mask ? #1520

Open
@Balakumaran-kandula

Description

@Balakumaran-kandula

I have a single class dataset , i am using num_classes here as 2 , and added the background also as a class (i,e) created mask with value 0 as the actual class and mask with value 1 as background class. So inside cross_entropy loss (batch_size,2,w,h) is the predicted output and (batch_size,w,h) as actual label with ignore_index being some random number other than 0 and 1. Whether this approach is correct or not ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions