lucky0146 commited on
Commit
d4e25e7
·
verified ·
1 Parent(s): 38e5619

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +24 -15
requirements.txt CHANGED
@@ -1,15 +1,24 @@
1
- torch==1.13.1 --extra-index-url https://download.pytorch.org/whl/cpu
2
- torchvision==0.14.1 --extra-index-url https://download.pytorch.org/whl/cpu
3
- opencv-python==4.5.5.64
4
- numpy==1.21.6
5
- pillow==9.0.1
6
- pyyaml==6.0
7
- gradio==3.0.0
8
- facexlib==0.2.5
9
- basicsr==1.4.2
10
- lmdb==1.2.1
11
- tqdm==4.62.0
12
- scipy>=1.7.0
13
- scikit-image==0.19.0
14
- timm==0.4.12
15
- realesrgan==0.3.0
 
 
 
 
 
 
 
 
 
 
1
+ # Base requirements for HF Spaces & Gradio
2
+ gradio
3
+ torch --index-url https://download.pytorch.org/whl/cpu # Force CPU version of PyTorch
4
+ torchvision --index-url https://download.pytorch.org/whl/cpu # Force CPU version of Torchvision
5
+
6
+ # Image processing
7
+ opencv-python-headless
8
+
9
+ # CodeFormer and its dependencies
10
+ # Installing directly from GitHub often ensures latest fixes
11
+ # facexlib # Usually installed by CodeFormer/GFPGAN
12
+ # gfpgan # Usually installed by CodeFormer
13
+ codeformer
14
+
15
+ # Optional: if the pip package 'codeformer' has issues, you might need to install dependencies manually
16
+ # basicsr
17
+ # yapf
18
+ # lmdb
19
+ # Pillow
20
+ # requests
21
+ # tqdm
22
+
23
+ # Note: Dependencies can sometimes be tricky. If 'codeformer' install fails,
24
+ # you might need to list its specific dependencies here based on its setup.py or requirements.