numpy openslide-python scikit-image scikit-learn Pillow transformers torch