Open vaydemir3 opened 2 years ago
Thanks for this! I was trying to figure out the purpose of base_temperature
. It does appear that the code here is different than in the original paper. Curious if anyone has a justification for the presence of base_temperature..? Wasn’t sure if there was a subsequent contrastive loss paper that introduces the idea or if the authors here found it an empirically useful hyperparameter.
@tbenst I was also curious about the base_temperature parameter. Did you get any insights / applications for the same?
Hi,
First of all, thanks a lot for sharing your code :) I was having an issue with a particular input to the SimCLR Loss. Here is the code that produces the false output:
When each feature vector is same, the loss should output log_e(2N-1), to see why
The above code fails to output log_e(2N-1)
The correct usage of the code seems to be dependent on setting both tempreature and base_temperature arguments of the loss function (thanks to my friend @sstojanov):