prodya-dev commited on
Commit
bca7f9c
·
1 Parent(s): d986a84

fix: pin numpy<2.0 and exact gfpgan/basicsr versions to fix build

Browse files
Files changed (1) hide show
  1. requirements.txt +10 -14
requirements.txt CHANGED
@@ -1,16 +1,12 @@
1
  # Morphaze HuggingFace Space — ReStyle + GFPGAN Avatar Preprocessing
2
- # Deploy: huggingface-cli repo create [username]/morphaze-avatar-preprocess --type space --sdk gradio
3
-
4
- torch>=2.0
5
- torchvision
6
- gradio>=4.0
7
- Pillow
8
- numpy
9
  opencv-python-headless
10
- # ReStyle dependencies
11
- ninja
12
- # GFPGAN dependencies
13
- gfpgan>=1.3
14
- basicsr>=1.4
15
- realesrgan>=0.3
16
- facexlib>=0.3
 
1
  # Morphaze HuggingFace Space — ReStyle + GFPGAN Avatar Preprocessing
2
+ # Pinned for compatibility: numpy<2 required by basicsr/facexlib/gfpgan
3
+ torch==2.1.2
4
+ torchvision==0.16.2
5
+ Pillow>=9.0
6
+ numpy<2.0
 
 
7
  opencv-python-headless
8
+ # GFPGAN + dependencies (pinned to known-working set)
9
+ basicsr==1.4.2
10
+ facexlib==0.3.0
11
+ gfpgan==1.3.8
12
+ realesrgan==0.3.0