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

How should I change the code about the class_num=3 case #1

Open
QuintinDong opened this issue Nov 26, 2023 · 2 comments
Open

How should I change the code about the class_num=3 case #1

QuintinDong opened this issue Nov 26, 2023 · 2 comments

Comments

@QuintinDong
Copy link

Sorry to bother the author. May I ask what changes I need to make to the code if I want to categorize a larger number, for example class_num=3? I would really appreciate your help. I will be grateful if you can answer!

@rezazad68
Copy link
Contributor

Thank you for expressing interest in our project. If you're interested in evaluating our method on a multi-organ dataset, extending the code is straightforward, as the primary component of the code involves a classical segmentation task. In the contrastive loss function 'compute_uxi_loss,' you will need to compute entropy for a multi-class scenario. For each class, define a prototype and, utilizing the candidate list within each class, work towards minimizing the distance to the prototype of that class.

@QuintinDong
Copy link
Author

Thank you for expressing interest in our project. If you're interested in evaluating our method on a multi-organ dataset, extending the code is straightforward, as the primary component of the code involves a classical segmentation task. In the contrastive loss function 'compute_uxi_loss,' you will need to compute entropy for a multi-class scenario. For each class, define a prototype and, utilizing the candidate list within each class, work towards minimizing the distance to the prototype of that class.

Thank you for your response. I would like to ask one more question. I changed num_classes to 3 in both training and testing, but there is still only foreground and background in the final visualization of the predictions, do I need to change anything else in the test file? I would appreciate if you could reply!

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