Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

More strict dependencies for PyTorch in torchvision preprocess (#28722)

Andrey Babushkin6fea70a88820
diff --git a/src/bindings/python/src/openvino/preprocess/torchvision/requirements.txt b/src/bindings/python/src/openvino/preprocess/torchvision/requirements.txt
index 201d5085bd1..7491703d091 100644
--- a/src/bindings/python/src/openvino/preprocess/torchvision/requirements.txt
+++ b/src/bindings/python/src/openvino/preprocess/torchvision/requirements.txt
@@ -1,5 +1,7 @@
--extra-index-url https://download.pytorch.org/whl/cpu
-torch>=1.13
-torchvision; platform_machine == 'arm64' and python_version >= '3.9'
-torchvision; platform_machine != 'arm64'
+networkx<=3.2.1; python_version <= '3.9'
+torch<=2.5.1; python_version <= '3.9'
+torch>=1.13; python_version > '3.9'
+torchvision<=0.20.1; python_version <= '3.9'
+torchvision; python_version > '3.9'
pillow>=9.0
\ No newline at end of file