jcjohnson / neural-style

Torch implementation of neural style algorithm
MIT License
18.31k stars 2.7k forks source link

Module 'image' not found #471

Open xojin opened 5 years ago

xojin commented 5 years ago

I have the following error:

/usr/share/lua/5.1/trepl/init.lua:389: module 'image' not found: no field package.preload['image'] no file './image.lua' no file '/usr/share/luajit-2.1.0-beta3/image.lua' no file '/usr/local/share/lua/5.1/image.lua' no file '/usr/local/share/lua/5.1/image/init.lua' no file '/usr/share/lua/5.1/image.lua' no file '/usr/share/lua/5.1/image/init.lua' no file './image.so' no file '/usr/local/lib/lua/5.1/image.so' no file '/usr/lib/x86_64-linux-gnu/lua/5.1/image.so' no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback: [C]: in function 'error' /usr/share/lua/5.1/trepl/init.lua:389: in function 'require' neural_style.lua:3: in main chunk [C]: in function 'dofile' /usr/lib/torch-trepl/th:149: in main chunk [C]: at 0x5565421471d0

PonasKovas commented 5 years ago

I'm having the same problem

AndreV84 commented 5 years ago

what if you install the module with: luarocks --local install image

aldenjenkins commented 3 years ago
luarocks --local install image --check-lua-versions
image not found for Lua 5.4.
Checking if available for other Lua versions...
Checking for Lua 5.1...
Checking for Lua 5.2...
Checking for Lua 5.3...

Error: No results matching query were found for Lua 5.4.
image is not available for any Lua versions.
aldenjenkins commented 3 years ago

Solution for arch linux: https://aur.archlinux.org/packages/torch7-image-git/

Install the torch image package