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

File.lua: unknown object #183

Open
tle7 opened this issue Nov 1, 2019 · 2 comments
Open

File.lua: unknown object #183

tle7 opened this issue Nov 1, 2019 · 2 comments

Comments

@tle7
Copy link

tle7 commented Nov 1, 2019

Hi,

When trying to train a new model, I am getting the following output:

/home/ubuntu/torch/install/bin/luajit: /home/ubuntu/torch/install/share/lua/5.1/torch/File.lua:375: unknown object
stack traceback:
[C]: in function 'error'
/home/ubuntu/torch/install/share/lua/5.1/torch/File.lua:375: in function 'readObject'
/home/ubuntu/torch/install/share/lua/5.1/torch/File.lua:409: in function 'load'
train.lua:117: in function 'main'
train.lua:327: in main chunk
[C]: in function 'dofile'
...untu/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50

I have also tried recloning the repo based on #415 and running train.lua again, but I still have the above issue.

I am running the following command:

th train.lua -h5_file lk2.h5 -style_image ../lk_train_dir/lk_00157.png -style_image_size 360 -content_weights 1.0 -style_weights 5.0 -checkpoint_name checkpoint -gpu -1

(where lk_00157.png is a specific image and lk2.h5 is the HDF5 file from step 1 of training a new model instructions)

Any advice would be helpful. Thank you

@jooohyunpark
Copy link

same issue here.

@fehmi
Copy link

fehmi commented Aug 3, 2020

@tle7 @jooohyunpark I just solved that. The problem was the vgg16.t7 file. It was corrupted.

I downloaded again from http://cs.stanford.edu/people/jcjohns/fast-neural-style/models/vgg16.t7 and the error is gone.

I hope the issue is same for you.

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