Pillow numpy torch torchvision transformers diffusers tqdm gradio