numpy torch transformers pillow