xunhuang1995 / AdaIN-style

Arbitrary Style Transfer in Real-time with Adaptive Instance Normalization
https://arxiv.org/abs/1703.06868
MIT License
1.46k stars 192 forks source link

HI XunHuan I have issue run on my mac. #31

Closed billchenxi closed 6 years ago

billchenxi commented 6 years ago

I don't have GPU so I didn't install cudnn, but when I run the example code: th test.lua -content input/content/cornell.jpg -style input/style/woman_with_hat_matisse.jpg It returns errors:

/Users/Bill/torch/install/bin/luajit: /Users/Bill/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 '/Users/Bill/.luarocks/share/lua/5.1/cudnn.lua'
    no file '/Users/Bill/.luarocks/share/lua/5.1/cudnn/init.lua'
    no file '/Users/Bill/torch/install/share/lua/5.1/cudnn.lua'
    no file '/Users/Bill/torch/install/share/lua/5.1/cudnn/init.lua'
    no file './cudnn.lua'
    no file '/Users/Bill/torch/install/share/luajit-2.1.0-beta1/cudnn.lua'
    no file '/usr/local/share/lua/5.1/cudnn.lua'
    no file '/usr/local/share/lua/5.1/cudnn/init.lua'
    no file '/Users/Bill/.luarocks/lib/lua/5.1/cudnn.so'
    no file '/Users/Bill/torch/install/lib/lua/5.1/cudnn.so'
    no file '/Users/Bill/torch/install/lib/cudnn.dylib'
    no file './cudnn.so'
    no file '/usr/local/lib/lua/5.1/cudnn.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
    [C]: in function 'error'
    /Users/Bill/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
    test.lua:41: in main chunk
    [C]: in function 'dofile'
    ...Bill/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
    [C]: at 0x0108224eb0
xunhuang1995 commented 6 years ago

Please use th test.lua -content input/content/cornell.jpg -style input/style/woman_with_hat_matisse.jpg -gpu -1