From 01c2c87889aca9636349fe025da60035341e39ab Mon Sep 17 00:00:00 2001 From: Yueming Hao Date: Wed, 16 Aug 2023 15:08:07 -0700 Subject: [PATCH] fix the version of opencv-python According to the [upstream issue](https://github.com/opencv/opencv-python/issues/885), opencv-python has some compatibility problem with numpy. Since we fixed the numpy version in the requirements.txt, we also need to fix the opencv-python's verison too. I install the nightly Torch and TorchBench, there is an installation error same with the above issue. opencv-python 4.7.0.72 works well. I think we'd better fix its version until the latest opencv-python 4.9.0 released. --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 37232735d8..537b5e8d00 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,6 +17,7 @@ pyyaml # pytorch build script pins numpy version # https://github.com/pytorch/builder/blob/ae5c82e65cb3d8bac6df50e742a195019af91ad3/wheel/build_wheel.sh#L145 numpy==1.21.2 +opencv-python==4.7.0.72 # Need https://github.com/kornia/kornia/commit/53808e5 to work on PyTorch nightly git+https://github.com/kornia/kornia.git@b7050c3 scipy # for lazy_bench.py