transformers torchvision pillow numpy einops