Skip to content

Instantly share code, notes, and snippets.

@ajinkyajawale14499
Created July 8, 2019 19:37
Show Gist options
  • Select an option

  • Save ajinkyajawale14499/302c2611c3787f0140c785a2f6c7a0d5 to your computer and use it in GitHub Desktop.

Select an option

Save ajinkyajawale14499/302c2611c3787f0140c785a2f6c7a0d5 to your computer and use it in GitHub Desktop.
print (train_generator.class_indices)
labels = '\n'.join(sorted(train_generator.class_indices.keys()))
with open('labels.txt', 'w') as f:
f.write(labels)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment