Skip to content

Commit

Permalink
fix the version of opencv-python
Browse files Browse the repository at this point in the history
According to the [upstream issue](opencv/opencv-python#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.
  • Loading branch information
FindHao committed Aug 16, 2023
1 parent db19b5c commit 01c2c87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Expand Up @@ -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
Expand Down

0 comments on commit 01c2c87

Please sign in to comment.