Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why the loss is different from BYOL authors' #81

Open
Jing-XING opened this issue Apr 23, 2022 · 2 comments
Open

Why the loss is different from BYOL authors' #81

Jing-XING opened this issue Apr 23, 2022 · 2 comments

Comments

@Jing-XING
Copy link

I found the loss is different from the loss said in BYOL paper which should be a L2 loss and I did't find explanation...
The loss in this repo is a cosine loss, and I just want to know why.
BTW, thanks for this great repo!

@lucidrains
Copy link
Owner

if you read section J.3 in the paper, the code is identical

@Jing-XING
Copy link
Author

if you read section J.3 in the paper, the code is identical

Thanks for your reply!
I see, after normalization the L2 loss is the same as cosine similarity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants