aditya-rAj19 commited on
Commit
40a7f16
·
1 Parent(s): cfc50fc

Fix opencv conflict: use opencv-contrib-python, pin albumentations>=2.0.0

Browse files
Files changed (1) hide show
  1. requirements.txt +4 -2
requirements.txt CHANGED
@@ -1,7 +1,8 @@
1
  # requirements.txt
2
 
3
- # Core
4
- opencv-python==4.9.0.80
 
5
  numpy==1.26.4
6
  Pillow==10.3.0
7
  scipy==1.13.0
@@ -17,6 +18,7 @@ torch==2.3.0
17
  torchvision==0.18.0
18
  # For GPU: torch==2.3.0+cu121
19
  scikit-image==0.23.2
 
20
  basicsr==1.4.2
21
  facexlib==0.3.0
22
  gfpgan==1.3.8
 
1
  # requirements.txt
2
 
3
+ # Core — use contrib build so basicsr/albumentations opencv requirement is satisfied
4
+ # (opencv-contrib-python is a strict superset of opencv-python; provides same cv2)
5
+ opencv-contrib-python>=4.9.0.80
6
  numpy==1.26.4
7
  Pillow==10.3.0
8
  scipy==1.13.0
 
18
  torchvision==0.18.0
19
  # For GPU: torch==2.3.0+cu121
20
  scikit-image==0.23.2
21
+ albumentations>=2.0.0 # pin 2.x — older versions require opencv-contrib separately
22
  basicsr==1.4.2
23
  facexlib==0.3.0
24
  gfpgan==1.3.8