{"action":"created","issue":{"url":"https://api.github.com/repos/jcjohnson/neural-style/issues/6","labels_url":"https://api.github.com/repos/jcjohnson/neural-style/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/jcjohnson/neural-style/issues/6/comments","events_url":"https://api.github.com/repos/jcjohnson/neural-style/issues/6/events","html_url":"https://github.com/jcjohnson/neural-style/issues/6","id":104444845,"number":6,"title":"Memory problems","user":{"login":"auduno","id":1588066,"avatar_url":"https://avatars.githubusercontent.com/u/1588066?v=3","gravatar_id":"","url":"https://api.github.com/users/auduno","html_url":"https://github.com/auduno","followers_url":"https://api.github.com/users/auduno/followers","following_url":"https://api.github.com/users/auduno/following{/other_user}","gists_url":"https://api.github.com/users/auduno/gists{/gist_id}","starred_url":"https://api.github.com/users/auduno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auduno/subscriptions","organizations_url":"https://api.github.com/users/auduno/orgs","repos_url":"https://api.github.com/users/auduno/repos","events_url":"https://api.github.com/users/auduno/events{/privacy}","received_events_url":"https://api.github.com/users/auduno/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-09-02T10:02:04Z","updated_at":"2015-09-04T08:46:53Z","closed_at":null,"body":"I'm running this code on g2.2 amazon ec2 instances and getting cuda out-of-memory errors for the default image size of 512. Is this code very memory-hungry or is this likely some problem with my setup?\r\n\r\nI manage to get the code running with smaller image sizes, i.e. 350, but then I seem to get corruptions in parts of the image, like this:\r\n![tub](https://cloud.githubusercontent.com/assets/1588066/9628291/2603546c-516a-11e5-9560-625592be7240.png)"},"comment":{"url":"https://api.github.com/repos/jcjohnson/neural-style/issues/comments/137681351","html_url":"https://github.com/jcjohnson/neural-style/issues/6#issuecomment-137681351","issue_url":"https://api.github.com/repos/jcjohnson/neural-style/issues/6","id":137681351,"user":{"login":"SirSpunky","id":1542042,"avatar_url":"https://avatars.githubusercontent.com/u/1542042?v=3","gravatar_id":"","url":"https://api.github.com/users/SirSpunky","html_url":"https://github.com/SirSpunky","followers_url":"https://api.github.com/users/SirSpunky/followers","following_url":"https://api.github.com/users/SirSpunky/following{/other_user}","gists_url":"https://api.github.com/users/SirSpunky/gists{/gist_id}","starred_url":"https://api.github.com/users/SirSpunky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirSpunky/subscriptions","organizations_url":"https://api.github.com/users/SirSpunky/orgs","repos_url":"https://api.github.com/users/SirSpunky/repos","events_url":"https://api.github.com/users/SirSpunky/events{/privacy}","received_events_url":"https://api.github.com/users/SirSpunky/received_events","type":"User","site_admin":false},"created_at":"2015-09-04T08:46:53Z","updated_at":"2015-09-04T08:46:53Z","body":"Hooray, I finally managed to install a native Ubuntu and can finally use my GeForce GTX 970 with 4 GB RAM. Now I can generate up to a size of 512, which is a huge improvement. However, if I try 768 or 1024 I get out of memory error:\r\n\r\n/home/hannes/torch/install/share/lua/5.1/nn/ConcatTable.lua:61: cuda runtime error (2) : out of memory at /home/hannes/torch/extra/cutorch/lib/THC/THCStorage.cu:44\r\n\r\nI'm using CUDA 7, but I read that 7.5 had some memory improvements. Do you think it would help to upgrade to this? Or is my best bet still to try a smaller VGG model, such as vgg_normalised.caffemodel or AlexNet/CaffeNet and experiment with the parameters?"}}