neuraltalk2 icon indicating copy to clipboard operation
neuraltalk2 copied to clipboard

<image.load> missing file name

Open abhi4092 opened this issue 9 years ago • 3 comments

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

abhi4092 avatar May 02 '16 00:05 abhi4092

Same error for me! Have you found a solution?

morienor avatar Jun 10 '16 18:06 morienor

I got same error! Finally I found that I have a wrong path to image folder, try to change a path of image?

hane1818 avatar Jul 18 '16 09:07 hane1818

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.

andevani avatar Dec 24 '16 10:12 andevani