From c7be85d4e7b68868a7f8e87cf39db191a4bb7246 Mon Sep 17 00:00:00 2001 From: Santiago Castro Date: Thu, 21 Oct 2021 16:43:28 -0400 Subject: [PATCH] Fix PyTorch version check --- clip/clip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clip/clip.py b/clip/clip.py index 9d6f4d6..e1a3c79 100644 --- a/clip/clip.py +++ b/clip/clip.py @@ -19,7 +19,7 @@ except ImportError: BICUBIC = Image.BICUBIC -if torch.__version__.split(".") < ["1", "7", "1"]: +if [int(n) for n in torch.__version__.split(".")] < [1, 7, 1]: warnings.warn("PyTorch version 1.7.1 or higher is recommended")