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

@tfzhou So, the class 0 is the ignore index and not the background class? I mean, for the background class is applied also the contrastive loss. Right? #66

Open
zhangyuxuan321 opened this issue Feb 27, 2023 · 4 comments

Comments

@zhangyuxuan321
Copy link

          @tfzhou  So, the class 0 is the ignore index and not the background class? I mean, for the background class is applied also the contrastive loss. Right?

Originally posted by @nysp78 in #60 (comment)

I also have this confusion, and the number 0 also means the background class in my segmentation task. I can't figure out that whether to use it in author's contrastive method.

@tfzhou
Copy link
Owner

tfzhou commented Mar 8, 2023

Hi @zhangyuxuan321, in my cases, class 0 indicates ignored categories. For cases that 0 refers to background, it should not be ignored for sure.

@zhangyuxuan321
Copy link
Author

Thanks a lot for quick reply! Another question please, I would like to ask if there is available the implementation of sampling hard positive/negatives pixel for the computation of the contrastive loss, because I only found the implementation of hard anchors sampling.

Thanks

@heifanfanfan
Copy link

Hello, I would like to consult you about some problems related to code reproduction. If possible, can I get your contact information

@LePapilllon
Copy link

Hello, I want to know if I set ["reduce_zero_label" : false], then my background will not be ignored.

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

4 participants