8e26f2e becb527
1
2
3
4
5
6
7
from PIL import Image import io def load_image(image_file): """Load an image file and return a PIL Image object.""" img = Image.open(image_file) return img.convert("RGB")