You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am wondering why the +1 is there. As far as I've understood, it's for the background class. But what if my dataset already has a background class? Should I ignore it in the ToMask transform?
The text was updated successfully, but these errors were encountered:
Hello,
As I see in the file
InternImage/segmentation/mmseg_custom/models/decode_heads /mask2former_head.py
, there is this line:self.cls_embed = nn.Linear(feat_channels, self.num_classes + 1)
I am wondering why the
+1
is there. As far as I've understood, it's for the background class. But what if my dataset already has a background class? Should I ignore it in theToMask
transform?The text was updated successfully, but these errors were encountered: