fast-neural-style
fast-neural-style copied to clipboard
File.lua: unknown object
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
same issue here.
@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.