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
the logit_mask are only applied to exp_logits and not logits themselves.
I cannot figure out the reason for this mathematically, can you please shed some light?
The text was updated successfully, but these errors were encountered:
I have also been studying the code for this loss today, and I have come to understand that it works like this: logits_mask is used to get the denominator(positives and negatives). mask is used to get the numerator(positives).
You can see that in line 92, mask is applied to log_prob.
Hi @HobbitLong,
Thanks for this great work!
My question is that in these two lines of loss
SupContrast/losses.py
Line 88 in 331aab5
SupContrast/losses.py
Line 89 in 331aab5
the
logit_mask
are only applied toexp_logits
and notlogits
themselves.I cannot figure out the reason for this mathematically, can you please shed some light?
The text was updated successfully, but these errors were encountered: