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

An error when running the test.lua without GPU #19

Closed
cicido opened this issue Jun 12, 2017 · 5 comments
Closed

An error when running the test.lua without GPU #19

cicido opened this issue Jun 12, 2017 · 5 comments

Comments

@cicido
Copy link

cicido commented Jun 12, 2017

th test.lua -content input/content/cornell.jpg -style input/style/woman_with_hat_matisse.jpg

{
content : "input/content/cornell.jpg"
contentDir : ""
outputDir : "output"
styleSize : 512
saveExt : "jpg"
vgg : "models/vgg_normalised.t7"
gpu : 0
saveOriginal : false
crop : false
preserveColor : false
alpha : 1
contentSize : 512
mask : ""
styleDir : ""
decoder : "models/decoder.t7"
style : "input/style/woman_with_hat_matisse.jpg"
styleInterpWeights : ""
}
/home/dxp/torch/install/bin/luajit: /home/dxp/torch/install/share/lua/5.1/trepl/init.lua:389: module 'cudnn' not found:No LuaRocks module found for cudnn
no field package.preload['cudnn']
no file '/root/.luarocks/share/lua/5.1/cudnn.lua'
no file '/root/.luarocks/share/lua/5.1/cudnn/init.lua'

@cicido
Copy link
Author

cicido commented Jun 12, 2017

machine version(I use a virtural machine)

cat /proc/version

Linux version 3.10.0-327.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu Nov 19 22:10:57 UTC 2015

@cicido
Copy link
Author

cicido commented Jun 12, 2017

when I change the LuaJIT to Lua5.2, I got another error:
torch/install/share/lua/5.2/trepl/init.lua:389: module 'unsup' not found:No LuaRocks module found for unsup
no field package.preload['unsup']
no file '/root/.luarocks/share/lua/5.2/unsup.lua'
no file '/root/.luarocks/share/lua/5.2/unsup/init.lua'

@xunhuang1995
Copy link
Owner

The code was depended on "unsup" module. I just removed the dependency and you should be able to run the newest code without error.

@mazard
Copy link

mazard commented Oct 31, 2017

I'm experiencing the same problem. How can I change the LuaJIT to Lua5.2?

@mazard
Copy link

mazard commented Oct 31, 2017

Ok, checking test.lua I saw there is a parameter not specified in the reference.
You just have to use -gpu -1 in the command line.

I take the opportunity to say thank you for sharing! your system is totally awesome!

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