Skip to content
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

Open
InderpreetSinghChhabra01 opened this issue Jan 5, 2018 · 2 comments
Open

Comments

@InderpreetSinghChhabra01

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

@yanxianghuang
Copy link

Same here.

@prajwal-y
Copy link

Just import the following, and it should work.

require 'torch'
require 'optim'
require 'paths'
require 'xlua'
require 'csvigo'
require 'nn'
require 'dpnn'
require 'cudnn'

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants