Open
Description
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 ?