How to import PILImage?

You should also be mindful to always set num_workers=0 in your dataloaders (just pass this as a param to anything making DataLoaders), as windows doesn’t allow multiprocessing for us. You’ll run into another headache later if you do not.