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

Multi-class segmentation #23

Open
Khola-naseem opened this issue Oct 19, 2024 · 1 comment
Open

Multi-class segmentation #23

Khola-naseem opened this issue Oct 19, 2024 · 1 comment

Comments

@Khola-naseem
Copy link

Khola-naseem commented Oct 19, 2024

Hi, i am working on a dataset in which I have three classes(background, object1 and object2). I configured the model as described but still, the model is producing a binary mask. please tell me if I have to set any other option for multi-class segmentation

@haoyudong-97
Copy link
Collaborator

Can you provide more details? If you set args.num_cls to the right value, the output should have size num_cls, H, W and we have the final prediction as "pred.argmax(dim=1)", which means the output should be able to predict multiple classes.

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

2 participants