You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
Thank you very much for providing your code on GitHub. There is a problem when trying to load the checkpoint.pth file. If I load it using your latest code, it gives the error AttributeError: Can't get attribute 'exclude_bias_and_norm' on <module '__main__'>.
One can easily fix it by adding the following function to the file (not nested anywhere)
defexclude_bias_and_norm(p):
returnp.ndim==1
Commit 21149b45bda50e579f166a4e261f281924b7c208 from August 5th actually introduced this "bug" as you very likely included the original saved model but just changed the code.
It is a very minor thing, but I thought about pointing it out. The problem stems from how PyTorch serializes models - hence I hope by opening this issue other researchers having the same issue might see this easy solution.
Here you can find a Jupyter notebook detailing the problem and the fix: BugReport.zip
The text was updated successfully, but these errors were encountered:
Thank you very much for providing your code on GitHub. There is a problem when trying to load the checkpoint.pth file. If I load it using your latest code, it gives the error
AttributeError: Can't get attribute 'exclude_bias_and_norm' on <module '__main__'>
.One can easily fix it by adding the following function to the file (not nested anywhere)
Commit
21149b45bda50e579f166a4e261f281924b7c208
from August 5th actually introduced this "bug" as you very likely included the original saved model but just changed the code.It is a very minor thing, but I thought about pointing it out. The problem stems from how PyTorch serializes models - hence I hope by opening this issue other researchers having the same issue might see this easy solution.
Here you can find a Jupyter notebook detailing the problem and the fix:
BugReport.zip
The text was updated successfully, but these errors were encountered: