Shathe / SemiSeg-Contrastive

Apache License 2.0
88 stars 13 forks source link

Question about the contrastive loss #2

Open lliuz opened 2 years ago

lliuz commented 2 years ago
  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

wzr0108 commented 1 year ago

我也有这个疑问