You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Select batchsize * (K + 1) features from memory bank and then calculate the similarity matrix. How to determine a positive pair and K negative pairs for each sample?
In MoCo, the aug views of the same image, v1 and v2, are a positive pairs, besides,v1 and other k views from the memory bank of the encoder_k are the k negative pairs. In CMC, this seems to be K + 1 negative pairs, because the memory bank is updated late and it seems that it is not guaranteed to obtain the positive pair view of each sample in the same batch.
The text was updated successfully, but these errors were encountered:
Hi, Thanks a lot for sharing this great code.
In
NCEAverage.py
, the code is shown as the following:Select
batchsize * (K + 1)
features from memory bank and then calculate the similarity matrix. How to determine a positive pair and K negative pairs for each sample?In MoCo, the aug views of the same image, v1 and v2, are a positive pairs, besides,v1 and other k views from the memory bank of the
encoder_k
are the k negative pairs. In CMC, this seems to be K + 1 negative pairs, because the memory bank is updated late and it seems that it is not guaranteed to obtain the positive pair view of each sample in the same batch.The text was updated successfully, but these errors were encountered: