-
Notifications
You must be signed in to change notification settings - Fork 187
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
FroSSL Implementation #390
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
*This pull request uses carry forward flags. Click here to find out more.
|
invariance_term = invariance_tradeoff * invariance_term | ||
|
||
if logger is not None: | ||
logger("frossl_regularization_loss", -regularization_term, sync_dist=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this supposed to be logged as - regularization_term
? I would also say that for consistency with the other loss functions, it's better if you return the individual elements and log them on the method's side. You could return the two terms and sum them in the method.
@OFSkean Apart from my comment, the other parts look good. It's just missing the documentation for the method, results/checkpoints, and these to the README. |
Implementation of FroSSL from https://arxiv.org/pdf/2310.02903
I am currently training a ResNet-18 on ImageNet100 to make sure everything is working properly