{"action":"created","issue":{"url":"https://api.github.com/repos/gskielian/JPG-PNG-to-MNIST-NN-Format/issues/1","repository_url":"https://api.github.com/repos/gskielian/JPG-PNG-to-MNIST-NN-Format","labels_url":"https://api.github.com/repos/gskielian/JPG-PNG-to-MNIST-NN-Format/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/gskielian/JPG-PNG-to-MNIST-NN-Format/issues/1/comments","events_url":"https://api.github.com/repos/gskielian/JPG-PNG-to-MNIST-NN-Format/issues/1/events","html_url":"https://github.com/gskielian/JPG-PNG-to-MNIST-NN-Format/issues/1","id":153046720,"number":1,"title":"TypeError: 'int' object has no attribute '__getitem__'","user":{"login":"shahinsh","id":2275218,"avatar_url":"https://avatars.githubusercontent.com/u/2275218?v=3","gravatar_id":"","url":"https://api.github.com/users/shahinsh","html_url":"https://github.com/shahinsh","followers_url":"https://api.github.com/users/shahinsh/followers","following_url":"https://api.github.com/users/shahinsh/following{/other_user}","gists_url":"https://api.github.com/users/shahinsh/gists{/gist_id}","starred_url":"https://api.github.com/users/shahinsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shahinsh/subscriptions","organizations_url":"https://api.github.com/users/shahinsh/orgs","repos_url":"https://api.github.com/users/shahinsh/repos","events_url":"https://api.github.com/users/shahinsh/events{/privacy}","received_events_url":"https://api.github.com/users/shahinsh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-04T15:48:35Z","updated_at":"2016-05-05T15:09:23Z","closed_at":"2016-05-05T15:09:23Z","body":"I followed your readme and after running the Python code I get following error.\r\n\r\n`Traceback (most recent call last):`\r\n ` File \"convert-images-to-mnist-format.py\", line 71, in <module>`\r\n `  print average(pix[x,y])`\r\n ` File \"convert-images-to-mnist-format.py\", line 9, in average`\r\n   ` return (pixel[0] + pixel[1] + pixel[2])/3`\r\n` TypeError: 'int' object has no attribute '__getitem__ '\r\n\r\nWould you please give me a hint to solve this error ?\r\n\r\nAnd in your readme you said \r\n\r\n> \r\n\r\n Change the appropriate labels in batches.meta.txt\r\n\r\nwhat do you mean by that ?"},"comment":{"url":"https://api.github.com/repos/gskielian/JPG-PNG-to-MNIST-NN-Format/issues/comments/217180426","html_url":"https://github.com/gskielian/JPG-PNG-to-MNIST-NN-Format/issues/1#issuecomment-217180426","issue_url":"https://api.github.com/repos/gskielian/JPG-PNG-to-MNIST-NN-Format/issues/1","id":217180426,"user":{"login":"shahinsh","id":2275218,"avatar_url":"https://avatars.githubusercontent.com/u/2275218?v=3","gravatar_id":"","url":"https://api.github.com/users/shahinsh","html_url":"https://github.com/shahinsh","followers_url":"https://api.github.com/users/shahinsh/followers","following_url":"https://api.github.com/users/shahinsh/following{/other_user}","gists_url":"https://api.github.com/users/shahinsh/gists{/gist_id}","starred_url":"https://api.github.com/users/shahinsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shahinsh/subscriptions","organizations_url":"https://api.github.com/users/shahinsh/orgs","repos_url":"https://api.github.com/users/shahinsh/repos","events_url":"https://api.github.com/users/shahinsh/events{/privacy}","received_events_url":"https://api.github.com/users/shahinsh/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T15:09:23Z","updated_at":"2016-05-05T15:09:23Z","body":"The problem was that My input Image was already grayscale and I had to put a color Image ."}}