-
Notifications
You must be signed in to change notification settings - Fork 161
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
Error: cPickle.UnpicklingError: invalid load key, ''. #27
Comments
Same here. |
Just import the following, and it should work. require 'torch' You may not need all of them though. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use the following code to convert torch method to overcome this error: convert torch 7 model and get an error : AttributeError: type object 'torch.cuda.FloatStorage' has no attribute 'from_buffer'
But soon after the first step i.e. loading the model I got the error:
cPickle.UnpicklingError: invalid load key, '�'.
m = torch.load('xxxx.t7')
m = m:float()
torch.save('xxxx.cpu.t7',m)
I have used the model of cycle gas trained in torch, I will be grateful if you can look into this, Thankyou in advance
The text was updated successfully, but these errors were encountered: