{"action":"created","issue":{"url":"https://api.github.com/repos/tjwei/Quick-Neural-Art-Transfer/issues/2","repository_url":"https://api.github.com/repos/tjwei/Quick-Neural-Art-Transfer","labels_url":"https://api.github.com/repos/tjwei/Quick-Neural-Art-Transfer/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/tjwei/Quick-Neural-Art-Transfer/issues/2/comments","events_url":"https://api.github.com/repos/tjwei/Quick-Neural-Art-Transfer/issues/2/events","html_url":"https://github.com/tjwei/Quick-Neural-Art-Transfer/issues/2","id":140483247,"number":2,"title":"Error in Main.py","user":{"login":"PeeyushAgg","id":14878279,"avatar_url":"https://avatars.githubusercontent.com/u/14878279?v=3","gravatar_id":"","url":"https://api.github.com/users/PeeyushAgg","html_url":"https://github.com/PeeyushAgg","followers_url":"https://api.github.com/users/PeeyushAgg/followers","following_url":"https://api.github.com/users/PeeyushAgg/following{/other_user}","gists_url":"https://api.github.com/users/PeeyushAgg/gists{/gist_id}","starred_url":"https://api.github.com/users/PeeyushAgg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeeyushAgg/subscriptions","organizations_url":"https://api.github.com/users/PeeyushAgg/orgs","repos_url":"https://api.github.com/users/PeeyushAgg/repos","events_url":"https://api.github.com/users/PeeyushAgg/events{/privacy}","received_events_url":"https://api.github.com/users/PeeyushAgg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-13T13:02:43Z","updated_at":"2016-03-13T13:07:39Z","closed_at":null,"body":"The main.py when run throws an Attribute error. This is because class objects are being initialized using data of three different folders out of which \"~./Output/ \" is missing.\r\n\r\nI get the following error from the prompt.\r\n\r\n```\r\nC:\\Users\\user\\Documents\\GitHub\\Quick-Neural-Art-Transfer [master +0 ~1 -0]>\r\nC:\\Users\\user\\Documents\\GitHub\\Quick-Neural-Art-Transfer [master +0 ~1 -0]> python main.py\r\n[INFO              ] [Logger      ] Record log in C:\\Users\\user\\.kivy\\logs\\kivy_16-03-13_7.txt\r\n[INFO              ] [Kivy        ] v1.9.1\r\n[INFO              ] [Python      ] v2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)]\r\n[INFO              ] [Factory     ] 179 symbols loaded\r\n[INFO              ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)\r\n[INFO              ] [OSC         ] using <thread> for socket\r\n[INFO              ] [Window      ] Provider: sdl2\r\n[INFO              ] [GL          ] GLEW initialization succeeded\r\n[INFO              ] [GL          ] OpenGL version <4.2.0 - Build 10.18.10.3379>\r\n[INFO              ] [GL          ] OpenGL vendor <Intel>\r\n[INFO              ] [GL          ] OpenGL renderer <Intel(R) HD Graphics 4400>\r\n[INFO              ] [GL          ] OpenGL parsed version: 4, 2\r\n[INFO              ] [GL          ] Shading version <4.20 - Build 10.18.10.3379>\r\n[INFO              ] [GL          ] Texture max size <16384>\r\n[INFO              ] [GL          ] Texture max units <32>\r\n[INFO              ] [Window      ] auto add sdl2 input provider\r\n[INFO              ] [Window      ] virtual keyboard not allowed, single mode, not docked\r\ncontent/tjw2.jpg\r\n1227\r\n(1227L, 1443L, 3L)\r\n(dtype('uint8'), dtype('float64'))\r\noutput/tjw_a.png\r\n Traceback (most recent call last):\r\n   File \"main.py\", line 73, in <module>\r\n     (\"content/smile_face.jpg\", \"styles/gh.jpg\", \"output/c5.png\")]]\r\n   File \"main.py\", line 55, in __init__\r\n     self.output = get_img(output)\r\n   File \"main.py\", line 47, in get_img\r\n     print len(img)\r\n TypeError: object of type 'NoneType' has no len()\r\nC:\\Users\\user\\Documents\\GitHub\\Quick-Neural-Art-Transfer [master +0 ~1 -0]>\r\n```"},"comment":{"url":"https://api.github.com/repos/tjwei/Quick-Neural-Art-Transfer/issues/comments/195954505","html_url":"https://github.com/tjwei/Quick-Neural-Art-Transfer/issues/2#issuecomment-195954505","issue_url":"https://api.github.com/repos/tjwei/Quick-Neural-Art-Transfer/issues/2","id":195954505,"user":{"login":"PeeyushAgg","id":14878279,"avatar_url":"https://avatars.githubusercontent.com/u/14878279?v=3","gravatar_id":"","url":"https://api.github.com/users/PeeyushAgg","html_url":"https://github.com/PeeyushAgg","followers_url":"https://api.github.com/users/PeeyushAgg/followers","following_url":"https://api.github.com/users/PeeyushAgg/following{/other_user}","gists_url":"https://api.github.com/users/PeeyushAgg/gists{/gist_id}","starred_url":"https://api.github.com/users/PeeyushAgg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeeyushAgg/subscriptions","organizations_url":"https://api.github.com/users/PeeyushAgg/orgs","repos_url":"https://api.github.com/users/PeeyushAgg/repos","events_url":"https://api.github.com/users/PeeyushAgg/events{/privacy}","received_events_url":"https://api.github.com/users/PeeyushAgg/received_events","type":"User","site_admin":false},"created_at":"2016-03-13T13:07:39Z","updated_at":"2016-03-13T13:07:39Z","body":"Sorry, there is a small mistake.\r\n\r\nI wrote a line of code\r\n\r\n```\r\nprint len(img)\r\n```\r\nfor my own convenience and it throws TypeError. But when the line is deleted the next line which is supposed to print the img shape throws an AttributError as None img as no attribute shape."}}