Skip to content

Instantly share code, notes, and snippets.

@Momotoculteur
Created May 31, 2019 12:54
Show Gist options
  • Save Momotoculteur/eed1d44d132ee9fa1a226253a005b81c to your computer and use it in GitHub Desktop.
Save Momotoculteur/eed1d44d132ee9fa1a226253a005b81c to your computer and use it in GitHub Desktop.
labels = train_generator.class_indices
with open('./classIndice.txt', 'w') as file:
file.write(json.dumps(labels))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment