-
Notifications
You must be signed in to change notification settings - Fork 268
multi classes with lovasz_hinge #30
Copy link
Copy link
Open
Description
Hi, thanks for your great work. But I have a question here.
emm, when I have a multi classes semantic segmentation task, I can convert the label to one-hot format and do sigmoid to the output of the network then apply nn.BCELoss() to the label and outputs. (Certainly, one-hot + no sigmoid outputs + nn.BCEWithLogitsLoss is also ok), when i do the inference, i just do torch.sigmoid to the outputs of the network and set the thershold as 0.5, then i can get the correct results of semantic segmentation.So may I do the same thing to the lovasz_hinge()? one-hot + no sigmoid outputs + lovasz_hinge?Does that work? And the inference process is same as above?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels