SemiSeg-Contrastive icon indicating copy to clipboard operation
SemiSeg-Contrastive copied to clipboard

Question about the contrastive loss

Open lliuz opened this issue 4 years ago • 1 comments

  1. I am wondering why the memory are normalized for the input of selector, but the features are not. https://github.com/Shathe/SemiSeg-Contrastive/blob/dc53c6da64f91c1ebce320f6e2ce3cc9f3df7414/contrastive_losses.py#L36-L37 https://github.com/Shathe/SemiSeg-Contrastive/blob/dc53c6da64f91c1ebce320f6e2ce3cc9f3df7414/contrastive_losses.py#L47-L48

  2. I am very confused why permute is needed here, which causes a inconsistent with Eq 8 in the paper for memory part. https://github.com/Shathe/SemiSeg-Contrastive/blob/dc53c6da64f91c1ebce320f6e2ce3cc9f3df7414/contrastive_losses.py#L58

lliuz avatar Oct 22 '21 06:10 lliuz

我也有这个疑问

wzr0108 avatar Jan 11 '23 15:01 wzr0108