{"action":"created","issue":{"url":"https://api.github.com/repos/jcjohnson/neural-style/issues/264","repository_url":"https://api.github.com/repos/jcjohnson/neural-style","labels_url":"https://api.github.com/repos/jcjohnson/neural-style/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/jcjohnson/neural-style/issues/264/comments","events_url":"https://api.github.com/repos/jcjohnson/neural-style/issues/264/events","html_url":"https://github.com/jcjohnson/neural-style/issues/264","id":162584212,"number":264,"title":"Ubuntu: loadcaffe.lua:20: attempt to index a nil value","user":{"login":"mrlament","id":20176982,"avatar_url":"https://avatars.githubusercontent.com/u/20176982?v=3","gravatar_id":"","url":"https://api.github.com/users/mrlament","html_url":"https://github.com/mrlament","followers_url":"https://api.github.com/users/mrlament/followers","following_url":"https://api.github.com/users/mrlament/following{/other_user}","gists_url":"https://api.github.com/users/mrlament/gists{/gist_id}","starred_url":"https://api.github.com/users/mrlament/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrlament/subscriptions","organizations_url":"https://api.github.com/users/mrlament/orgs","repos_url":"https://api.github.com/users/mrlament/repos","events_url":"https://api.github.com/users/mrlament/events{/privacy}","received_events_url":"https://api.github.com/users/mrlament/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-28T01:37:26Z","updated_at":"2016-07-06T09:09:23Z","closed_at":null,"body":"Hi everyone,\r\n\r\nI'm executing this:\r\n\r\n`th neural_style.lua -style_image Painting1.jpg -content_image Image1.jpg -gpu -1`\r\n\r\nand it's not finishing.  Here's the response I get:\r\n\r\n> [libprotobuf WARNING google/protobuf/io/coded_stream.cc:537] Reading dangerously large protocol message.  If the message turns out to be larger than 1073741824 bytes, parsing will be halted for security reasons.  To increase the limit (or to disable these warnings), see CodedInputStream::SetTotalBytesLimit() in google/protobuf/io/coded_stream.h.\r\n> [libprotobuf WARNING google/protobuf/io/coded_stream.cc:78] The total number of bytes read was 574671192\r\n> Successfully loaded models/VGG_ILSVRC_19_layers.caffemodel\r\n> /home/duke/torch/install/bin/luajit: ...duke/torch/install/share/lua/5.1/loadcaffe/loadcaffe.lua:20: attempt to index a nil value\r\n> stack traceback:\r\n> \t...duke/torch/install/share/lua/5.1/loadcaffe/loadcaffe.lua:20: in function 'load'\r\n> \tneural_style.lua:73: in function 'main'\r\n> \tneural_style.lua:515: in main chunk\r\n> \t[C]: in function 'dofile'\r\n> \t...duke/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk\r\n> \t[C]: at 0x00405d50\r\n\r\nI'm running Ubuntu 16.04.  Anyone have any ideas?   \r\n"},"comment":{"url":"https://api.github.com/repos/jcjohnson/neural-style/issues/comments/230718856","html_url":"https://github.com/jcjohnson/neural-style/issues/264#issuecomment-230718856","issue_url":"https://api.github.com/repos/jcjohnson/neural-style/issues/264","id":230718856,"user":{"login":"humppa","id":196498,"avatar_url":"https://avatars.githubusercontent.com/u/196498?v=3","gravatar_id":"","url":"https://api.github.com/users/humppa","html_url":"https://github.com/humppa","followers_url":"https://api.github.com/users/humppa/followers","following_url":"https://api.github.com/users/humppa/following{/other_user}","gists_url":"https://api.github.com/users/humppa/gists{/gist_id}","starred_url":"https://api.github.com/users/humppa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humppa/subscriptions","organizations_url":"https://api.github.com/users/humppa/orgs","repos_url":"https://api.github.com/users/humppa/repos","events_url":"https://api.github.com/users/humppa/events{/privacy}","received_events_url":"https://api.github.com/users/humppa/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T09:09:23Z","updated_at":"2016-07-06T09:09:23Z","body":"Loadcaffe is not very friendly with error messages, and there are many possibilities, what could have gone wrong.\r\n\r\nSince loadcaffe tries to transform prototxt file to Lua file, it needs to be able to create a new file to `models` directory. One way I've gotten the aforementioned error was, when I cloned `neutral-style` with superuser privileges and tried to ran it as a regular user (without sufficient write permission).\r\n\r\nDoes the file `VGG_ILSVRC_19_layers_deploy.prototxt.lua` appear to `models` directory?\r\n\r\nAlso, to rule out the possibility of corrupted files, here are the sha1sums of the models:\r\n```\r\n239785e7862442717d831f682bb824055e51e9ba  VGG_ILSVRC_19_layers.caffemodel\r\n132d2f60b3d3b1c2bb9d3fdb0c8931a44f89e2ae  VGG_ILSVRC_19_layers_deploy.prototxt\r\na74d3f83f8b719b14f78a1d0a5ea9b5c749d53d7  vgg_normalised.caffemodel\r\n```"}}
{"actor":{"display_login":"humppa"}}