{"action":"created","issue":{"url":"https://api.github.com/repos/jcjohnson/neural-style/issues/97","labels_url":"https://api.github.com/repos/jcjohnson/neural-style/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/jcjohnson/neural-style/issues/97/comments","events_url":"https://api.github.com/repos/jcjohnson/neural-style/issues/97/events","html_url":"https://github.com/jcjohnson/neural-style/pull/97","id":122352122,"number":97,"title":"Re-seed image if needed","user":{"login":"3DTOPO","id":352383,"avatar_url":"https://avatars.githubusercontent.com/u/352383?v=3","gravatar_id":"","url":"https://api.github.com/users/3DTOPO","html_url":"https://github.com/3DTOPO","followers_url":"https://api.github.com/users/3DTOPO/followers","following_url":"https://api.github.com/users/3DTOPO/following{/other_user}","gists_url":"https://api.github.com/users/3DTOPO/gists{/gist_id}","starred_url":"https://api.github.com/users/3DTOPO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3DTOPO/subscriptions","organizations_url":"https://api.github.com/users/3DTOPO/orgs","repos_url":"https://api.github.com/users/3DTOPO/repos","events_url":"https://api.github.com/users/3DTOPO/events{/privacy}","received_events_url":"https://api.github.com/users/3DTOPO/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-15T19:50:53Z","updated_at":"2015-12-17T21:52:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jcjohnson/neural-style/pulls/97","html_url":"https://github.com/jcjohnson/neural-style/pull/97","diff_url":"https://github.com/jcjohnson/neural-style/pull/97.diff","patch_url":"https://github.com/jcjohnson/neural-style/pull/97.patch"},"body":"If the total loss from previous iteration is 0, the image is re-seeded, otherwise a \"function value changing less than tolX\" message will appear and fail.\r\n\r\nMoved the image initialization code into a reusable function and called if the total loss from previous iteration is 0 at proposed line 301.\r\n\r\nTested with many images and has worked every time. Note that you are more likely to reproduce the issue the larger the image output size is. Try 1024-1568."},"comment":{"url":"https://api.github.com/repos/jcjohnson/neural-style/issues/comments/165592763","html_url":"https://github.com/jcjohnson/neural-style/pull/97#issuecomment-165592763","issue_url":"https://api.github.com/repos/jcjohnson/neural-style/issues/97","id":165592763,"user":{"login":"spencermize","id":936433,"avatar_url":"https://avatars.githubusercontent.com/u/936433?v=3","gravatar_id":"","url":"https://api.github.com/users/spencermize","html_url":"https://github.com/spencermize","followers_url":"https://api.github.com/users/spencermize/followers","following_url":"https://api.github.com/users/spencermize/following{/other_user}","gists_url":"https://api.github.com/users/spencermize/gists{/gist_id}","starred_url":"https://api.github.com/users/spencermize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spencermize/subscriptions","organizations_url":"https://api.github.com/users/spencermize/orgs","repos_url":"https://api.github.com/users/spencermize/repos","events_url":"https://api.github.com/users/spencermize/events{/privacy}","received_events_url":"https://api.github.com/users/spencermize/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T21:52:44Z","updated_at":"2015-12-17T21:52:44Z","body":"I can confirm this fixes my issues with \"function value changing less than tolX\". "}}