cv2 torch imagehash transformers datasets pillow numpy