For example,in a dataset which contains cats and dogs,
In C==1 case,the requirements is:
    Just segmenting out cats,treating all others as background(of course target will just label cats as 1,set all other pixels to 0)
In this case,should the output channel be 1 or 2?
In my opinion,it can be either 1 or 2,if setting output channel to 1,just use BCELossWithLogits,and if set it to 2,we must one-hot encoding targets firstly,then use BCELossWithLogits,
am I right about this first case?
In C>1 case,requirement is:
Segmenting out cats And Dogs
I this case should the output channel be 2 or 2+1(background),in other words,should be C or C+1(background) if C>1?
In my opinion,it must 3(C+1) that the background must be treated as a class,am I right about this second case?