{"action":"created","issue":{"url":"https://api.github.com/repos/fchollet/keras/issues/4645","repository_url":"https://api.github.com/repos/fchollet/keras","labels_url":"https://api.github.com/repos/fchollet/keras/issues/4645/labels{/name}","comments_url":"https://api.github.com/repos/fchollet/keras/issues/4645/comments","events_url":"https://api.github.com/repos/fchollet/keras/issues/4645/events","html_url":"https://github.com/fchollet/keras/issues/4645","id":194318094,"number":4645,"title":"Too many indices for array: ImageDataGenerator","user":{"login":"egiralt","id":7782438,"avatar_url":"https://avatars.githubusercontent.com/u/7782438?v=3","gravatar_id":"","url":"https://api.github.com/users/egiralt","html_url":"https://github.com/egiralt","followers_url":"https://api.github.com/users/egiralt/followers","following_url":"https://api.github.com/users/egiralt/following{/other_user}","gists_url":"https://api.github.com/users/egiralt/gists{/gist_id}","starred_url":"https://api.github.com/users/egiralt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egiralt/subscriptions","organizations_url":"https://api.github.com/users/egiralt/orgs","repos_url":"https://api.github.com/users/egiralt/repos","events_url":"https://api.github.com/users/egiralt/events{/privacy}","received_events_url":"https://api.github.com/users/egiralt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-08T11:59:31Z","updated_at":"2016-12-13T08:30:14Z","closed_at":null,"body":"Please make sure that the boxes below are checked before you submit your issue. Thank you!\r\n\r\n- [x] Check that you are up-to-date with the master branch of Keras. You can update with:\r\npip install git+git://github.com/fchollet/keras.git --upgrade --no-deps\r\n\r\n- [x] If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:\r\npip install git+git://github.com/Theano/Theano.git --upgrade --no-deps\r\n\r\n- [x] Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).\r\n\r\nHi!\r\nI`m using the example in [https://blog.keras.io/building-powerful-image-classification-models-using-very-little-data.html](url) to generate more images for each one in my dataset, but I am getting the following error:\r\n\r\n> IndexError                                Traceback (most recent call last)\r\n> < ipython-input-14-2d81fc849a89 > in < module >()\r\n>     18 i = 0\r\n>     19 for batch in datagen.flow(x, batch_size=1,\r\n> ---> 20                           save_to_dir='images/train/1', save_prefix='cat', save_format='jpeg'):\r\n>     21     i += 1\r\n>     22     if i > 20:\r\n>\r\n> /usr/lib/python2.7/site-packages/keras/preprocessing/image.pyc in next(self)\r\n>    579         if self.y is None:\r\n>    580             return batch_x\r\n> --> 581         batch_y = self.y[index_array]\r\n>    582         return batch_x, batch_y\r\n>    583 \r\n>\r\n> **IndexError: too many indices for array**\r\n>\r\nThe code is the same, with different paths. :(\r\n\r\nGist: My code [https://gist.github.com/egiralt/a64b01fe6a82abd96708aca06c0f6cf6](url)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fchollet/keras/issues/comments/266676856","html_url":"https://github.com/fchollet/keras/issues/4645#issuecomment-266676856","issue_url":"https://api.github.com/repos/fchollet/keras/issues/4645","id":266676856,"user":{"login":"egiralt","id":7782438,"avatar_url":"https://avatars.githubusercontent.com/u/7782438?v=3","gravatar_id":"","url":"https://api.github.com/users/egiralt","html_url":"https://github.com/egiralt","followers_url":"https://api.github.com/users/egiralt/followers","following_url":"https://api.github.com/users/egiralt/following{/other_user}","gists_url":"https://api.github.com/users/egiralt/gists{/gist_id}","starred_url":"https://api.github.com/users/egiralt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egiralt/subscriptions","organizations_url":"https://api.github.com/users/egiralt/orgs","repos_url":"https://api.github.com/users/egiralt/repos","events_url":"https://api.github.com/users/egiralt/events{/privacy}","received_events_url":"https://api.github.com/users/egiralt/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T08:30:14Z","updated_at":"2016-12-13T08:30:14Z","body":"Upps!.. My mistake..[here]( https://gist.github.com/egiralt/a64b01fe6a82abd96708aca06c0f6cf6)"}}
{"actor":{"display_login":"egiralt"}}