luanfujun / deep-painterly-harmonization

Code and data for paper "Deep Painterly Harmonization": https://arxiv.org/abs/1804.03189
6.08k stars 628 forks source link

Get error "/torch/extra/cutorch/lib/THC/THCGeneral.c line=70 error=30 : unknown error" #8

Closed bowlderstudio closed 6 years ago

bowlderstudio commented 6 years ago

I got error when I run "python gen_all.py". Could you give any help to this problem?

bowlderstudio commented 6 years ago

More detailed information: [C]: in function 'error' /home/.../torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require' neural_gram.lua:9: in main chunk [C]: in function 'dofile' ...nshi/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk [C]: at 0x00405d50

luanfujun commented 6 years ago

neural_gram.lua:9 is require 'cutorch'. Could you run th in terminal and then require 'cutorch' in torch to see if this package can be loaded? You can install cutorch using: luarocks install cutorch (but do luarocks install torch first to update torch).

bowlderstudio commented 6 years ago

Thank you! There are something wrong in my torch environment. I reinstalled torch in another cleaned machine. Now it works.

luanfujun commented 6 years ago

Great! Closing this issue...