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

Binary segmentation may only output zeros #1774

Open
wptoux opened this issue Jul 14, 2022 · 4 comments
Open

Binary segmentation may only output zeros #1774

wptoux opened this issue Jul 14, 2022 · 4 comments
Assignees

Comments

@wptoux
Copy link

wptoux commented Jul 14, 2022

Describe the bug
The EncoderDecoder Segmentor seems not to take into account the binary segmentation case. The argmax linked below may only return 0 when num_classes=1 and using sigmoid as loss fuction.

seg_pred = seg_logit.argmax(dim=1)

seg_pred = seg_logit.argmax(dim=1)

@MeowZheng
Copy link
Collaborator

Thanks for your bug reporting. We will fix it asap.

@xiexinch please have a look.

@xiexinch
Copy link
Collaborator

Hi @wptoux,
We are working on fixing this bug, but it takes some time.

@GuardSkill
Copy link

Me too, we alter code to make a multi-label binary segmentation, but the per pixel in binary preds has the same values.

@xiexinch
Copy link
Collaborator

xiexinch commented Sep 2, 2022

Hi @wptoux, @GuardSkill,
We create PR #2016 to fix the bug, could you try it and feedback to us?

wjkim81 pushed a commit to wjkim81/mmsegmentation that referenced this issue Dec 3, 2023
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

5 participants