ContrastiveSeg icon indicating copy to clipboard operation
ContrastiveSeg copied to clipboard

@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?

Open zhangyuxuan321 opened this issue 2 years ago • 4 comments

          @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 https://github.com/tfzhou/ContrastiveSeg/issues/60#issuecomment-1287888818

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.

zhangyuxuan321 avatar Feb 27 '23 08:02 zhangyuxuan321

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

tfzhou avatar Mar 08 '23 21:03 tfzhou

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

zhangyuxuan321 avatar Mar 09 '23 01:03 zhangyuxuan321

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

heifanfanfan avatar Mar 20 '23 13:03 heifanfanfan

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

LePapilllon avatar Apr 13 '23 13:04 LePapilllon