PyTorch-BYOL icon indicating copy to clipboard operation
PyTorch-BYOL copied to clipboard

Loss function

Open likith012 opened this issue 4 years ago • 1 comments

I am not sure, but I think the loss function is a bit different from the original paper https://github.com/sthalles/PyTorch-BYOL/blob/f007ed6b3619a3ae00eb9c95cde342eac5b98923/trainer.py#L35. In the paper the loss function equation is for unnormalized tensors(loss equation combines both normalization and l2 loss), but here you are normalizing them and applying the loss function.

image

likith012 avatar Nov 16 '21 23:11 likith012

I completed a simple implementation on CIFAR10 and the cosine similarity loss in the original article, you can follow https://github.com/Issac-Sun/BYOL_pytorch

Issac-Sun avatar Nov 05 '24 12:11 Issac-Sun