Nuggets of gold
Images and EXIF Apparently, when you snap a picture with an iPhone in portrait mode, pixel data is saved as landscape and its orientation added in its EXIF. This means you gonna get hurt real bad (like me) if you’re not careful when preparing data for training a model. Fortunately, pillow has a great module for transposing images: import os, glob from PIL import Image, ImageOps count = 0 def mylistdir(directory): """A specialized version of os.
Stuff you can do in the terminal