Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keras ImageDataGenerator shuffles the directories' labels. #7543

Closed
madmonl opened this issue Aug 7, 2017 · 1 comment
Closed

Keras ImageDataGenerator shuffles the directories' labels. #7543

madmonl opened this issue Aug 7, 2017 · 1 comment

Comments

@madmonl
Copy link

madmonl commented Aug 7, 2017

I am working on a project which involves the use of a datagen. The project's data consists of data arranged in subclasses that resides in directories named: '1', '2', ..., '64'.
When i checked the results on the test set, I recognized that the datagen rearanged the directories in a non-lexicographic way using a directory as follows:
dict = {'10':0, '11':1, .... , '7':63}. (under the field: validation_generator.indices).
Meaning that if my probabilities vector of size 64, looks like the following:
[1, 0, 0, ... , 0]
The network will consider the samples as class '10'-th, while i want it rearranged in a lexicographic way, meaning the above probabilities vector would be the output of an image belonging to the '0'-th class.
Is there a way of controlling the datagen's labels shuffle system?

@stale
Copy link

stale bot commented Nov 5, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed.

@stale stale bot added the stale label Nov 5, 2017
@stale stale bot closed this as completed Dec 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant