I have a directory of images, and a separate file matching image filenames to labels. So the directory of images has files like \'train/001.jpg\' and the labeling file looks lik
I used this:
filename = filename.strip().decode('ascii')