From 7eb41e4f0c122645de5450e0b3e227daba77744a Mon Sep 17 00:00:00 2001 From: jemmyshin Date: Fri, 25 Nov 2022 13:11:54 +0800 Subject: [PATCH 1/4] fix: fix torchvision version to avoid compatibility issue --- server/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/setup.py b/server/setup.py index faaff6cfb..9ce91e664 100644 --- a/server/setup.py +++ b/server/setup.py @@ -45,7 +45,7 @@ 'ftfy', 'torch', 'regex', - 'torchvision', + 'torchvision==0.13.0', 'jina>=3.8.0', 'prometheus-client', 'open_clip_torch>=1.3.0', From 73b7b26cd174ffef1a5b9a2e30fc30e27513f243 Mon Sep 17 00:00:00 2001 From: jemmyshin Date: Fri, 25 Nov 2022 14:41:43 +0800 Subject: [PATCH 2/4] fix: fix torchvision version to avoid compatibility issue --- server/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/setup.py b/server/setup.py index 9ce91e664..2ce2b3ee0 100644 --- a/server/setup.py +++ b/server/setup.py @@ -45,7 +45,7 @@ 'ftfy', 'torch', 'regex', - 'torchvision==0.13.0', + 'torchvision<=0.13.0' if sys.version_info == (3, 7, 0) else 'torchvision', 'jina>=3.8.0', 'prometheus-client', 'open_clip_torch>=1.3.0', From 24b32c135398296d0df2f11e065996d8b5b0fc0a Mon Sep 17 00:00:00 2001 From: jemmyshin Date: Fri, 25 Nov 2022 15:10:50 +0800 Subject: [PATCH 3/4] fix: fix python version for torchvision --- server/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/setup.py b/server/setup.py index 2ce2b3ee0..6b77abb46 100644 --- a/server/setup.py +++ b/server/setup.py @@ -45,7 +45,7 @@ 'ftfy', 'torch', 'regex', - 'torchvision<=0.13.0' if sys.version_info == (3, 7, 0) else 'torchvision', + 'torchvision<=0.13.0' if sys.version_info == (3, 7, 2) else 'torchvision', 'jina>=3.8.0', 'prometheus-client', 'open_clip_torch>=1.3.0', From fbc72de78a52a50cd92d608b95b2b2722e25eb84 Mon Sep 17 00:00:00 2001 From: jemmyshin Date: Fri, 25 Nov 2022 15:11:35 +0800 Subject: [PATCH 4/4] fix: fix python version for torchvision --- server/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/setup.py b/server/setup.py index 6b77abb46..dfbf20a3e 100644 --- a/server/setup.py +++ b/server/setup.py @@ -45,7 +45,7 @@ 'ftfy', 'torch', 'regex', - 'torchvision<=0.13.0' if sys.version_info == (3, 7, 2) else 'torchvision', + 'torchvision<=0.13.0' if sys.version_info <= (3, 7, 2) else 'torchvision', 'jina>=3.8.0', 'prometheus-client', 'open_clip_torch>=1.3.0',