DmitryUlyanov / texture_nets

Code for "Texture Networks: Feed-forward Synthesis of Textures and Stylized Images" paper.
Apache License 2.0
1.22k stars 218 forks source link

unknown Torch class <nn.SpatialReplicationPadding> #69

Open AlexNarbut opened 7 years ago

AlexNarbut commented 7 years ago

I train on my laptop with Geforce 940m 8gb RAM My Settings echo $PATH /home/alex/torch-cl/install/bin:/usr/local/cuda-8.0/bin:/home/alex/torch/install/bin:/home/alex/torch-cl/install/bin:/home/alex/torch/install/bin:/home/alex/bin:/home/alex/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin echo $LD_LIBRARY_PATH /home/alex/torch-cl/install/lib:/usr/local/cuda-8.0/lib64:/home/alex/torch/install/lib:/home/alex/torch-cl/install/lib:/home/alex/torch/install/lib:

My calling test.lua -input_image karya.jpg -model_t7 model.t7 /home/alex/torch-cl/install/bin/luajit: /home/alex/torch-cl/install/share/lua/5.1/torch/File.lua:334: unknown Torch class stack traceback: [C]: in function 'error' /home/alex/torch-cl/install/share/lua/5.1/torch/File.lua:334: in function 'readObject' /home/alex/torch-cl/install/share/lua/5.1/torch/File.lua:360: in function 'readObject' /home/alex/torch-cl/install/share/lua/5.1/torch/File.lua:360: in function 'readObject' /home/alex/torch-cl/install/share/lua/5.1/nn/Module.lua:154: in function 'read' /home/alex/torch-cl/install/share/lua/5.1/torch/File.lua:342: in function 'readObject' /home/alex/torch-cl/install/share/lua/5.1/torch/File.lua:391: in function 'load' test.lua:17: in main chunk [C]: in function 'dofile' ...x/torch-cl/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00405e90

DmitryUlyanov commented 7 years ago

This is very strange, since it is there in nn package. Try to rebuild nn and cunn.