neuraltalk2
neuraltalk2 copied to clipboard
<image.load> missing file name
Hi there , i am getting the following error while trying to run neuraltalk2
pintu@pins-pc:~/Desktop/neuraltalk2-master$ th eval.lua -model /home/pintu/MyHome/model_id1-501-1448236541.t7_cpu.t7 -image_folder /home/pintu/MyHome/images/ -num_images -1 -gpuid -1
DataLoaderRaw loading images from folder: /home/pintu/MyHome/images/
listing all images in directory /home/pintu/MyHome/images/
DataLoaderRaw found 0 images
constructing clones inside the LanguageModel
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
image.load
loads an image into a torch.Tensor
usage: image.load( string -- path to file [number] -- force destination depth: 1 | 3 [string] -- type: byte | float | double ) +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
/home/pintu/torch/install/bin/luajit: /home/pintu/torch/install/share/lua/5.1/dok/inline.lua:738: <image.load> missing file name stack traceback: [C]: in function 'error' /home/pintu/torch/install/share/lua/5.1/dok/inline.lua:738: in function 'error' /home/pintu/torch/install/share/lua/5.1/image/init.lua:340: in function 'load' ./misc/DataLoaderRaw.lua:82: in function 'getBatch' eval.lua:116: in function 'eval_split' eval.lua:173: in main chunk [C]: in function 'dofile' ...intu/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670
i am using ubuntu 14.04
Same error for me! Have you found a solution?
I got same error! Finally I found that I have a wrong path to image folder, try to change a path of image?
while specifying the image folder,please make sure you give full path to the folder which contains the image. This will not work if you give path to the parent folder. In this case, /home/pintu/MyHome/images/ should contain another folder. please specify the name of that folder.