0

我在尝试运行 neuraltalk2 时得到以下输出

parag@parag:~/MyHome/neuraltalk2/neuraltalk2-master$ th eval.lua -model /home/parag/MyHome/neuraltalk2/ -image_folder /home/parag/MyHome/neuraltalk2/images/ -num_images -1 -gpuid -1
/home/parag/torch/install/bin/luajit: /home/parag/torch/install/share/lua/5.1/torch/File.lua:199: read error: read 0 blocks instead of 1 at /home/parag/torch/pkg/torch/lib/TH/THDiskFile.c:314
stack traceback:
[C]: in function 'readInt'
/home/parag/torch/install/share/lua/5.1/torch/File.lua:199: in function 'readObject'
/home/parag/torch/install/share/lua/5.1/torch/File.lua:325: in function 'load'
eval.lua:69: in main chunk
[C]: in function 'dofile'
...arag/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00405d70

parag@parag:~/MyHome/neuraltalk2/neuraltalk2-master$

这里出了什么问题?

4

1 回答 1

0

我的命令不完整。包括模型名称的模型的完整路径将在命令中给出,如下所示:

$ th eval.lua -model /home/parag/MyHome/neuraltalk2/model_id1-501-1448236541.t7_cpu.t7 -image_folder /home/parag/MyHome/neuraltalk2/images/ -num_images -1 -gpuid -1

这为我解决了这个问题!

于 2015-12-21T12:04:57.230 回答