-
Notifications
You must be signed in to change notification settings - Fork 290
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
Implement W-MSE Loss and Transform #1459
Conversation
Implement W-MSE Transform
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1459 +/- ##
==========================================
+ Coverage 85.24% 85.52% +0.28%
==========================================
Files 130 135 +5
Lines 5517 5653 +136
==========================================
+ Hits 4703 4835 +132
- Misses 814 818 +4 ☔ View full report in Codecov by Sentry. |
Hi @johnsutor, thank you very much for your contribution. Someone from our team will have a look asap. |
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.
Thank you for the changes, @johnsutor! The PR looks great so far. I have left a few comments on things I think we should change before merging. If you have any questions or require help updating the PR please let me know 🙂
Remove unecessary print statements in W-MSE Loss tests Add additional documentation to forward pass of W-MSE loss Add Gaussian Blur to W-MSE transform
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.
This looks good now! I'll quickly do a sanity check on Cifar10 and then we're good to merge. Thank you 🙂
The results look promising, after 3 epochs we get a kNN accuracy of over 50% with
Will merge this now and leave the proper benchmarking for later. @guarin FYI. |
* Implement W-MSE Loss * Implement W-MSE Transform
This pull request implements the W-MSE Transform and W-MSE Loss as proposed in the paper https://arxiv.org/pdf/2007.06346.pdf. The code largely comes from the original repository https://github.com/htdt/self-supervised, preserving the default hyperparameters with some minor changes to make it compatible with lightly. This feature was recommended in this issue: #1424 (comment)