{"action":"created","issue":{"url":"https://api.github.com/repos/jcjohnson/neural-style/issues/117","labels_url":"https://api.github.com/repos/jcjohnson/neural-style/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/jcjohnson/neural-style/issues/117/comments","events_url":"https://api.github.com/repos/jcjohnson/neural-style/issues/117/events","html_url":"https://github.com/jcjohnson/neural-style/issues/117","id":125368442,"number":117,"title":"Errors running neural-style in CPU mode","user":{"login":"IAMJackal","id":16591220,"avatar_url":"https://avatars.githubusercontent.com/u/16591220?v=3","gravatar_id":"","url":"https://api.github.com/users/IAMJackal","html_url":"https://github.com/IAMJackal","followers_url":"https://api.github.com/users/IAMJackal/followers","following_url":"https://api.github.com/users/IAMJackal/following{/other_user}","gists_url":"https://api.github.com/users/IAMJackal/gists{/gist_id}","starred_url":"https://api.github.com/users/IAMJackal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IAMJackal/subscriptions","organizations_url":"https://api.github.com/users/IAMJackal/orgs","repos_url":"https://api.github.com/users/IAMJackal/repos","events_url":"https://api.github.com/users/IAMJackal/events{/privacy}","received_events_url":"https://api.github.com/users/IAMJackal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-07T10:38:25Z","updated_at":"2016-01-17T01:29:19Z","closed_at":null,"body":"Total linux newb here, going through neural-style install on WIN 10 machine running Ubuntu on VirtualBox. \r\n\r\nDo the terminal command:  \r\n\r\n~/neural-style$ th neural_style.lua -gpu -1 -print_iter -1\r\n\r\nAnd get these errors:\r\n\r\n[libprotobuf WARNING google/protobuf/io/coded_stream.cc:505] 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\nSuccessfully loaded models/VGG_ILSVRC_19_layers.caffemodel\r\n/torch/install/bin/luajit: /usr/local/share/lua/5.1/loadcaffe/loadcaffe.lua:20: attempt to index a nil value\r\nstack traceback:\r\n\t/usr/local/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:499: in main chunk\r\n\t[C]: in function 'dofile'\r\n\t...ckal/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk\r\n\t[C]: at 0x004065d0\r\n\r\nAll help appreciated and thanks in advance!\r\n\r\nJackal"},"comment":{"url":"https://api.github.com/repos/jcjohnson/neural-style/issues/comments/172282552","html_url":"https://github.com/jcjohnson/neural-style/issues/117#issuecomment-172282552","issue_url":"https://api.github.com/repos/jcjohnson/neural-style/issues/117","id":172282552,"user":{"login":"IAMJackal","id":16591220,"avatar_url":"https://avatars.githubusercontent.com/u/16591220?v=3","gravatar_id":"","url":"https://api.github.com/users/IAMJackal","html_url":"https://github.com/IAMJackal","followers_url":"https://api.github.com/users/IAMJackal/followers","following_url":"https://api.github.com/users/IAMJackal/following{/other_user}","gists_url":"https://api.github.com/users/IAMJackal/gists{/gist_id}","starred_url":"https://api.github.com/users/IAMJackal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IAMJackal/subscriptions","organizations_url":"https://api.github.com/users/IAMJackal/orgs","repos_url":"https://api.github.com/users/IAMJackal/repos","events_url":"https://api.github.com/users/IAMJackal/events{/privacy}","received_events_url":"https://api.github.com/users/IAMJackal/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T01:29:19Z","updated_at":"2016-01-17T01:29:19Z","body":"@sdvf Finally got past above error. It was lots of trial and error, including installing and reinstalling torch and related apps several times and running through this guide several times. Used this for torch install:\r\n\r\nhttp://torch.ch/docs/getting-started.html\r\n\r\nMade the mistake of putting \"sudo\" on some commands. If you use sudo installation may be in your home only instead of /usr/lib. \r\n\r\nAfter each installs, used chown command to take ownership of an created directories before making next install.\r\n\r\nMost of the problems had to due with missing packages for needed for base programs, torch, lua, luarocks, luajit such as make, cmake, png and jpg support etc.\r\n\r\nThis is what I get now with th $neural_style.lua -gpu -1 -print_iter -1:\r\n\r\n[libprotobuf WARNING google/protobuf/io/coded_stream.cc:505] 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\nSuccessfully loaded models/VGG_ILSVRC_19_layers.caffemodel\r\nconv1_1: 64 3 3 3\r\nconv1_2: 64 64 3 3\r\nconv2_1: 128 64 3 3\r\nconv2_2: 128 128 3 3\r\nconv3_1: 256 128 3 3\r\nconv3_2: 256 256 3 3\r\nconv3_3: 256 256 3 3\r\nconv3_4: 256 256 3 3\r\nconv4_1: 512 256 3 3\r\nconv4_2: 512 512 3 3\r\nconv4_3: 512 512 3 3\r\nconv4_4: 512 512 3 3\r\nconv5_1: 512 512 3 3\r\nconv5_2: 512 512 3 3\r\nconv5_3: 512 512 3 3\r\nconv5_4: 512 512 3 3\r\nfc6: 1 1 25088 4096\r\nfc7: 1 1 4096 4096\r\nfc8: 1 1 4096 1000\r\nSetting up style layer  \t2\t:\trelu1_1\t\r\nSetting up style layer  \t7\t:\trelu2_1\t\r\nSetting up style layer  \t12\t:\trelu3_1\t\r\nSetting up style layer  \t21\t:\trelu4_1\t\r\nSetting up content layer\t23\t:\trelu4_2\t\r\nSetting up style layer  \t30\t:\trelu5_1\t\r\n\r\n \r\n\r\n "}}