Skip to content

Instantly share code, notes, and snippets.

@jonathanoheix
Created January 4, 2019 08:27
Show Gist options
  • Save jonathanoheix/365736ba3399a5c0b457842be6e9d070 to your computer and use it in GitHub Desktop.
Save jonathanoheix/365736ba3399a5c0b457842be6e9d070 to your computer and use it in GitHub Desktop.
# count number of train images for each expression
for expression in os.listdir(base_path + "train"):
print(str(len(os.listdir(base_path + "train/" + expression))) + " " + expression + " images")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment