-
Notifications
You must be signed in to change notification settings - Fork 14
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
Fix lightning issue #41
Conversation
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. @@ Coverage Diff @@
## main #41 +/- ##
=====================================
Coverage 6.61% 6.62%
=====================================
Files 38 38
Lines 1315 1314 -1
=====================================
Hits 87 87
+ Misses 1228 1227 -1
|
@LorenzLamm this will likely break again at some point if they update the checkpoint metadata format again, if you search for how to upgrade model checkpoints to new lightning versions this is the more correct solution 🙂 |
Hi @alisterburt , The problem here is not on the Pytorch lightning side, as I had initially thought, but on the MONAI side, which also got an update 3 weeks ago (I feel every package got an update during my vacation :D). One workaround is to manually set the I did manage to convert the model file to a new version, containing the In order to not overcomplicate this, I still vote for the initial fix with setting |
Oh, strange! Sounds like you've got a handle on things, maybe updating the weights and setting strict=False is the best path :-) |
To be clear, I don't think backwards compatibility is super important, just be clear about which version of our package is compatible with which version of monai/lightning etc Maybe we should version monai strictly |
Yes, I agree. Most important is that our most recent (and ideally best) model is working properly. Probably makes sense to version monai (and maybe also other packages?) strictly at some point? But then let's for now go with the |
You're a star @LorenzLamm ! Hope you enjoyed vacation |
This PR should fix the issue mentioned in #40
Thanks @alisterburt for providing the solution -- I just needed to add the
strict=False
argument, because somehow the information stored in the models was not compatible anymore (some weight of a Pytorch loss function).