{"action":"created","issue":{"url":"https://api.github.com/repos/karpathy/neuraltalk2/issues/14","labels_url":"https://api.github.com/repos/karpathy/neuraltalk2/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/karpathy/neuraltalk2/issues/14/comments","events_url":"https://api.github.com/repos/karpathy/neuraltalk2/issues/14/events","html_url":"https://github.com/karpathy/neuraltalk2/issues/14","id":119032725,"number":14,"title":"Error when running eval.lua (\"attempt to index field 'tensorOutput' (a nil value)\")","user":{"login":"herenow","id":2773294,"avatar_url":"https://avatars.githubusercontent.com/u/2773294?v=3","gravatar_id":"","url":"https://api.github.com/users/herenow","html_url":"https://github.com/herenow","followers_url":"https://api.github.com/users/herenow/followers","following_url":"https://api.github.com/users/herenow/following{/other_user}","gists_url":"https://api.github.com/users/herenow/gists{/gist_id}","starred_url":"https://api.github.com/users/herenow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/herenow/subscriptions","organizations_url":"https://api.github.com/users/herenow/orgs","repos_url":"https://api.github.com/users/herenow/repos","events_url":"https://api.github.com/users/herenow/events{/privacy}","received_events_url":"https://api.github.com/users/herenow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-11-26T12:05:52Z","updated_at":"2015-11-27T20:41:53Z","closed_at":null,"body":"Hello,\r\n\r\nI've just downloaded the project out of curiosity, and followed the setup instructions. But note that I have no idea of what I'm doing :)\r\n\r\nI'm running on a problem when running:\r\n`$ th eval.lua -model ./model_id1-501-1448236541.t7_cpu.t7  -image_folder ./sample-images -num_images 1 -gpuid -1`\r\n\r\nHeres my setup:\r\nMachine: `Macbook Pro, late 2011, 2.4 GHz Intel Core i5, 2.4 GHz Intel Core i5, OS X El Capitan 10.11.1`\r\nModel: I'm using the provided [cpu checkpoint model](http://cs.stanford.edu/people/karpathy/neuraltalk2/checkpoint_v1_cpu.zip) in the README.\r\nImage in folder: http://25.media.tumblr.com/Jjkybd3nSab3wr6cd1T33jjw_500.jpg\r\n\r\nError output:\r\n```bash\r\n$ th eval.lua -model ./model_id1-501-1448236541.t7_cpu.t7 -gpuid -1 -image_folder ./sample-images\r\nDataLoaderRaw loading images from folder:       ./sample-images\r\nlisting all images in directory ./sample-images\r\nDataLoaderRaw found 1 images\r\nconstructing clones inside the LanguageModel\r\n/Users/***/torch/install/bin/luajit: /Users/***/torch/install/share/lua/5.1/nn/Identity.lua:13: attempt to index field 'tensorOutput' (a nil value)\r\nstack traceback:\r\n        /Users/***/torch/install/share/lua/5.1/nn/Identity.lua:13: in function 'func'\r\n        /Users/***/torch/install/share/lua/5.1/nngraph/gmodule.lua:252: in function 'neteval'\r\n        /Users/***/torch/install/share/lua/5.1/nngraph/gmodule.lua:287: in function 'forward'\r\n        ./misc/LanguageModel.lua:266: in function 'sample'\r\n        eval.lua:134: in function 'eval_split'\r\n        eval.lua:169: in main chunk\r\n        [C]: in function 'dofile'\r\n        ...***/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk\r\n        [C]: at 0x0102a00bd0\r\n```\r\n\r\nI've also partially ran the tests in `test_language_model.lua`, and they pass, although I've commented out the `cudaApiForwardTest`.\r\n\r\nLet me know if there is anything else I can provide."},"comment":{"url":"https://api.github.com/repos/karpathy/neuraltalk2/issues/comments/160201447","html_url":"https://github.com/karpathy/neuraltalk2/issues/14#issuecomment-160201447","issue_url":"https://api.github.com/repos/karpathy/neuraltalk2/issues/14","id":160201447,"user":{"login":"soumith","id":1310570,"avatar_url":"https://avatars.githubusercontent.com/u/1310570?v=3","gravatar_id":"","url":"https://api.github.com/users/soumith","html_url":"https://github.com/soumith","followers_url":"https://api.github.com/users/soumith/followers","following_url":"https://api.github.com/users/soumith/following{/other_user}","gists_url":"https://api.github.com/users/soumith/gists{/gist_id}","starred_url":"https://api.github.com/users/soumith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soumith/subscriptions","organizations_url":"https://api.github.com/users/soumith/orgs","repos_url":"https://api.github.com/users/soumith/repos","events_url":"https://api.github.com/users/soumith/events{/privacy}","received_events_url":"https://api.github.com/users/soumith/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T20:41:53Z","updated_at":"2015-11-27T20:41:53Z","body":"hi @herenow and @aroomthedoomed \r\n\r\nluarocks install nn\r\n\r\nin your terminal, willl fix this issue. Sorry about that."}}