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 is ibot loss divided by 2 in the logger? #463

Open
bkanaki opened this issue Sep 3, 2024 · 0 comments
Open

Why is ibot loss divided by 2 in the logger? #463

bkanaki opened this issue Sep 3, 2024 · 0 comments

Comments

@bkanaki
Copy link

bkanaki commented Sep 3, 2024

Hello, I'm trying to understand the behaviour of the individual losses and when I look at the implementation, I see that the loss_dict is what is logging different losses for dino local crops, global crops, ibot loss and koleo loss.

In the loss dict, here the ibot loss is divided by 2. But when calculatin the gradients and when the backward call happens, the ibot loss isn't divided by 2 here and then ultimately in the total_loss here metric too, this loss is not divided by 2.

So why is this loss during metric logging divided by 2? Is this just a mistake in logging or the actual ibot loss should be divided by 2?

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

1 participant