Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set semseg as logit or probability? #15

Open
haozhi1817 opened this issue Dec 4, 2023 · 0 comments
Open

Set semseg as logit or probability? #15

haozhi1817 opened this issue Dec 4, 2023 · 0 comments

Comments

@haozhi1817
Copy link

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。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant