{"action":"created","issue":{"url":"https://api.github.com/repos/andersbll/neural_artistic_style/issues/21","repository_url":"https://api.github.com/repos/andersbll/neural_artistic_style","labels_url":"https://api.github.com/repos/andersbll/neural_artistic_style/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/andersbll/neural_artistic_style/issues/21/comments","events_url":"https://api.github.com/repos/andersbll/neural_artistic_style/issues/21/events","html_url":"https://github.com/andersbll/neural_artistic_style/issues/21","id":109889952,"number":21,"title":"Reducing Memory Usage?","user":{"login":"dsrubin","id":2693973,"avatar_url":"https://avatars.githubusercontent.com/u/2693973?v=3","gravatar_id":"","url":"https://api.github.com/users/dsrubin","html_url":"https://github.com/dsrubin","followers_url":"https://api.github.com/users/dsrubin/followers","following_url":"https://api.github.com/users/dsrubin/following{/other_user}","gists_url":"https://api.github.com/users/dsrubin/gists{/gist_id}","starred_url":"https://api.github.com/users/dsrubin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsrubin/subscriptions","organizations_url":"https://api.github.com/users/dsrubin/orgs","repos_url":"https://api.github.com/users/dsrubin/repos","events_url":"https://api.github.com/users/dsrubin/events{/privacy}","received_events_url":"https://api.github.com/users/dsrubin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-05T21:28:22Z","updated_at":"2016-03-22T22:39:02Z","closed_at":null,"body":"Hi,\r\n\r\nMy background is more in distributed systems than neural networks, but I managed to get this running with GPU support enabled and am just wondering if there is a way to reduce memory usage. My graphics card only has 4GB of memory which limits me to processing at most roughly 500x500 pixels.\r\n\r\nWhen running another implementation of this algorithm on CPU I am able to use my entire 16gb of CPU memory which allows me to do much larger pictures, but much MUCH slower. Is there any way to reduce memory overhead via code changes or configuration changes? Is it possible to process only part of the image at once, then re-merge the pieces of the image at the end? I suspect doing that would cause some issues along the boarders. \r\n\r\nYour insight is appreciated, thanks :)"},"comment":{"url":"https://api.github.com/repos/andersbll/neural_artistic_style/issues/comments/200063925","html_url":"https://github.com/andersbll/neural_artistic_style/issues/21#issuecomment-200063925","issue_url":"https://api.github.com/repos/andersbll/neural_artistic_style/issues/21","id":200063925,"user":{"login":"theJollySin","id":1831479,"avatar_url":"https://avatars.githubusercontent.com/u/1831479?v=3","gravatar_id":"","url":"https://api.github.com/users/theJollySin","html_url":"https://github.com/theJollySin","followers_url":"https://api.github.com/users/theJollySin/followers","following_url":"https://api.github.com/users/theJollySin/following{/other_user}","gists_url":"https://api.github.com/users/theJollySin/gists{/gist_id}","starred_url":"https://api.github.com/users/theJollySin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theJollySin/subscriptions","organizations_url":"https://api.github.com/users/theJollySin/orgs","repos_url":"https://api.github.com/users/theJollySin/repos","events_url":"https://api.github.com/users/theJollySin/events{/privacy}","received_events_url":"https://api.github.com/users/theJollySin/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T22:39:01Z","updated_at":"2016-03-22T22:39:01Z","body":"@andersbll For my use-case, both my content images and styles are grayscale. Is there any way for me to speed this process up (or save graphics card RAM) by altering your process to ignore color information?\r\n\r\nThanks for the wonderful learning tool!"}}