{"action":"created","issue":{"url":"https://api.github.com/repos/alexjc/neural-doodle/issues/7","repository_url":"https://api.github.com/repos/alexjc/neural-doodle","labels_url":"https://api.github.com/repos/alexjc/neural-doodle/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/alexjc/neural-doodle/issues/7/comments","events_url":"https://api.github.com/repos/alexjc/neural-doodle/issues/7/events","html_url":"https://github.com/alexjc/neural-doodle/issues/7","id":139913245,"number":7,"title":"Getting 'NoneType' error","user":{"login":"goldenice","id":1433851,"avatar_url":"https://avatars.githubusercontent.com/u/1433851?v=3","gravatar_id":"","url":"https://api.github.com/users/goldenice","html_url":"https://github.com/goldenice","followers_url":"https://api.github.com/users/goldenice/followers","following_url":"https://api.github.com/users/goldenice/following{/other_user}","gists_url":"https://api.github.com/users/goldenice/gists{/gist_id}","starred_url":"https://api.github.com/users/goldenice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldenice/subscriptions","organizations_url":"https://api.github.com/users/goldenice/orgs","repos_url":"https://api.github.com/users/goldenice/repos","events_url":"https://api.github.com/users/goldenice/events{/privacy}","received_events_url":"https://api.github.com/users/goldenice/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-10T15:01:00Z","updated_at":"2016-03-10T15:51:46Z","closed_at":null,"body":"On my MBP 15\" 2015, with El Capitan, I'm getting this error when trying to convert an image:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"doodle.py\", line 449, in <module>\r\n    generator = NeuralGenerator()\r\n  File \"doodle.py\", line 200, in __init__\r\n    self.content_map_original = np.zeros(self.content_img_original.shape[:2]+(1,))\r\nAttributeError: 'NoneType' object has no attribute 'shape'\r\n```\r\n\r\nThe command was:\r\n```\r\npython3 doodle.py --style samples/Monet.jpg --output output.png --device=cpu --iterations=1 --save-every 1\r\n```\r\n\r\nI'm not that fluent in Python, but am I correct in seeing that a file fails to load or something like that? How should I fix this?\r\n"},"comment":{"url":"https://api.github.com/repos/alexjc/neural-doodle/issues/comments/194917355","html_url":"https://github.com/alexjc/neural-doodle/issues/7#issuecomment-194917355","issue_url":"https://api.github.com/repos/alexjc/neural-doodle/issues/7","id":194917355,"user":{"login":"alexjc","id":445208,"avatar_url":"https://avatars.githubusercontent.com/u/445208?v=3","gravatar_id":"","url":"https://api.github.com/users/alexjc","html_url":"https://github.com/alexjc","followers_url":"https://api.github.com/users/alexjc/followers","following_url":"https://api.github.com/users/alexjc/following{/other_user}","gists_url":"https://api.github.com/users/alexjc/gists{/gist_id}","starred_url":"https://api.github.com/users/alexjc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexjc/subscriptions","organizations_url":"https://api.github.com/users/alexjc/orgs","repos_url":"https://api.github.com/users/alexjc/repos","events_url":"https://api.github.com/users/alexjc/events{/privacy}","received_events_url":"https://api.github.com/users/alexjc/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T15:51:46Z","updated_at":"2016-03-10T15:51:46Z","body":"The problem is you're trying to create output without any \"doodle\" for it. You need to create a file called `output_sem.png` which is your target for the optimization algorithm.\r\n\r\nI presume it works with `samples/Coastline.jpg` because it loads `samples/Coastline_sem.png`?\r\n\r\nI'll add a better error message ;-)"}}