-
Notifications
You must be signed in to change notification settings - Fork 378
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
Add SimCLR trainer #1252
Add SimCLR trainer #1252
Conversation
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.
Messaged on Slack, need to update to new style.
Really sick of codecov/feedback#126 |
I tried this trainer with multigpu and got |
With or without |
I don't touch E.g. this config works
however, if I change the |
What's the stack trace for the error? Only thing I can do is search repos for that error message. |
Can you try running |
|
Our node is still down. Been going back and forth with the sys admins for days 😭 |
loss = self.criterion(z1, z2) | ||
|
||
# Calculate the mean normalized standard deviation over features dimensions. | ||
# If this is << 1 / sqrt(h1.shape[1]), then the model is not learning anything. |
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.
@calebrob6 do you want this in every SSL trainer or no SSL trainers? Want to be consistent.
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.
It is a good thing to monitor in training per the SimSiam paper so we shouldn't remove it just for convenience, however it also isn't urgent to add it to other trainers
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.
I'll add it to MoCo, should only take a minute.
loss = self.criterion(z1, z2) | ||
|
||
# Calculate the mean normalized standard deviation over features dimensions. | ||
# If this is << 1 / sqrt(h1.shape[1]), then the model is not learning anything. |
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.
It is a good thing to monitor in training per the SimSiam paper so we shouldn't remove it just for convenience, however it also isn't urgent to add it to other trainers
This PR adds a SimCLR trainer which uses implementations from the
lightly
packageReboot of #1195