Open vitcozzolino opened 6 years ago
There was a similar problem on Jetson TK1 as well as various 32-bit linux installations. In those cases, the solution was to compile Torch to use Lua 5.2 instead of LuaJIT. You say you have 64-bit Ubuntu, so this might not apply to you, but one the other hand it might. See this thread, especially the last comment about using Lua 5.2 https://github.com/jcjohnson/neural-style/issues/193
I've tried what you suggested but now things are even worse.
th neural_style.lua -print_iter 1 -gpu -1
Bus error (core dumped)
th neural_style.lua -print_iter 1 -gpu 0
Bus error (core dumped)
No idea why that happens. Somebody else has reported a bus error using torch on TX1, but without any response: https://github.com/torch/torch7/issues/950 .
By reinstalling torch with defaults you should get back where you started. Don't know what is the shortest way to get torch working though. Anyway, this is almost certainly a torch issue (not a neural-style issue), and you might get better help in the torch users group https://groups.google.com/forum/#!forum/torch7
Thanks much for the help! Will have a look on the torch user group.
BTW, after installing torch with LUA5.2, one needs to reinstall all luarocks (such as nn, cutorch, cunn, cudnn), too. Don't know if you were aware of this (applies every time one reinstalls torch). I guess one should not get such a cryptic error because of this, but you never know for sure.
I'm on a Jetson Tegra TX2 (64 bit Ubuntu, 6 cores, 8 GB RAM, GPU) and I'm unable to run any example, I always receive a Segmentation Fault error. For example: