Skip to content

Set semseg as logit or probability? #15

@haozhi1817

Description

@haozhi1817

def semantic_inference(self, mask_cls, mask_pred):

semseg = mask_cls.softmax(-1) @ mask_pred.sigmoid()
which will result in: 1>= semseg >= 0
When we compute loss_func, we set semseg as a logits, and compute prob by semseg.sigmoid()
If 1>= semseg >= 0,the probs must be >= 0.5, but we need the prob >=0.
Maybe I am wrong or I miss some calculation process,please feel free to advise me。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions