{"action":"created","issue":{"url":"https://api.github.com/repos/jcjohnson/neural-style/issues/181","repository_url":"https://api.github.com/repos/jcjohnson/neural-style","labels_url":"https://api.github.com/repos/jcjohnson/neural-style/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/jcjohnson/neural-style/issues/181/comments","events_url":"https://api.github.com/repos/jcjohnson/neural-style/issues/181/events","html_url":"https://github.com/jcjohnson/neural-style/issues/181","id":141373444,"number":181,"title":"THCudaCheck FAIL ","user":{"login":"nikoworld","id":17809118,"avatar_url":"https://avatars.githubusercontent.com/u/17809118?v=3","gravatar_id":"","url":"https://api.github.com/users/nikoworld","html_url":"https://github.com/nikoworld","followers_url":"https://api.github.com/users/nikoworld/followers","following_url":"https://api.github.com/users/nikoworld/following{/other_user}","gists_url":"https://api.github.com/users/nikoworld/gists{/gist_id}","starred_url":"https://api.github.com/users/nikoworld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikoworld/subscriptions","organizations_url":"https://api.github.com/users/nikoworld/orgs","repos_url":"https://api.github.com/users/nikoworld/repos","events_url":"https://api.github.com/users/nikoworld/events{/privacy}","received_events_url":"https://api.github.com/users/nikoworld/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-16T19:13:37Z","updated_at":"2016-03-17T10:21:08Z","closed_at":null,"body":"When I execute\r\n`th neural_style.lua -style_image ~/n1/3.jpg -content_image ~/n1/or1.jpeg`\r\nI get\r\n```\r\nlibprotobuf WARNING google/protobuf/io/coded_stream.cc:487] 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\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\nTHCudaCheck FAIL file=/tmp/luarocks_cutorch-scm-1-7114/cutorch/lib/THC/generic/THCStorage.cu line=40 error=2 : out of memory\r\n/home/ni/torch/install/bin/luajit: /home/ni/torch/install/share/lua/5.1/nn/Container.lua:69: \r\nIn 8 module of nn.Sequential:\r\n/home/ni/torch/install/share/lua/5.1/nn/THNN.lua:109: cuda runtime error (2) : out of memory at /tmp/luarocks_cutorch-scm-1-7114/cutorch/lib/THC/generic/THCStorage.cu:40\r\nstack traceback:\r\n\t[C]: in function 'v'\r\n\t/home/ni/torch/install/share/lua/5.1/nn/THNN.lua:109: in function 'SpatialConvolutionMM_updateOutput'\r\n\t...ni/torch/install/share/lua/5.1/nn/SpatialConvolution.lua:104: in function <...ni/torch/install/share/lua/5.1/nn/SpatialConvolution.lua:100>\r\n\t[C]: in function 'xpcall'\r\n\t/home/ni/torch/install/share/lua/5.1/nn/Container.lua:65: in function 'rethrowErrors'\r\n\t/home/ni/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'\r\n\tneural_style.lua:204: in function 'main'\r\n\tneural_style.lua:500: in main chunk\r\n\t[C]: in function 'dofile'\r\n\t...e/ni/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk\r\n\t[C]: at 0x00406240\r\n\r\nWARNING: If you see a stack trace below, it doesn't point to the place where this error occured. Please use only the one above.\r\nstack traceback:\r\n\t[C]: in function 'error'\r\n\t/home/ni/torch/install/share/lua/5.1/nn/Container.lua:69: in function 'rethrowErrors'\r\n\t/home/ni/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'\r\n\tneural_style.lua:204: in function 'main'\r\n\tneural_style.lua:500: in main chunk\r\n\t[C]: in function 'dofile'\r\n\t...e/ni/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk\r\n\t[C]: at 0x00406240\r\n```\r\nWhat is the problem and how can it be fixed?\r\n"},"comment":{"url":"https://api.github.com/repos/jcjohnson/neural-style/issues/comments/197804957","html_url":"https://github.com/jcjohnson/neural-style/issues/181#issuecomment-197804957","issue_url":"https://api.github.com/repos/jcjohnson/neural-style/issues/181","id":197804957,"user":{"login":"xenon2","id":4399658,"avatar_url":"https://avatars.githubusercontent.com/u/4399658?v=3","gravatar_id":"","url":"https://api.github.com/users/xenon2","html_url":"https://github.com/xenon2","followers_url":"https://api.github.com/users/xenon2/followers","following_url":"https://api.github.com/users/xenon2/following{/other_user}","gists_url":"https://api.github.com/users/xenon2/gists{/gist_id}","starred_url":"https://api.github.com/users/xenon2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xenon2/subscriptions","organizations_url":"https://api.github.com/users/xenon2/orgs","repos_url":"https://api.github.com/users/xenon2/repos","events_url":"https://api.github.com/users/xenon2/events{/privacy}","received_events_url":"https://api.github.com/users/xenon2/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T10:21:08Z","updated_at":"2016-03-17T10:21:08Z","body":"You can reduce output size."}}