ddriscoll commited on
Commit
632bea2
·
verified ·
1 Parent(s): 34076a5

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +24 -14
requirements.txt CHANGED
@@ -1,27 +1,37 @@
1
- # PyTorch and related libraries
2
- torch>=1.10.0
3
- transformers>=4.21.0
4
- diffusers>=0.10.0
5
- torchvision==0.14.1
6
 
7
- # Gradio for the web UI
8
- gradio>=3.16.2
 
 
 
 
 
 
 
 
 
 
 
9
 
10
- # Object detection
11
  ultralytics>=8.0.0
12
 
 
 
 
 
 
 
 
13
  # Image processing
14
  opencv-python>=4.5.3.56
15
  Pillow>=9.0.0
16
- numpy>=1.21.0
17
 
18
- # Wikipedia lookup
19
  wikipedia>=1.4.0
20
 
21
- # Upscaling model dependencies
22
- realesrgan>=0.3.0
23
- basicsr>=1.3.2
24
-
25
  # Additional utilities
26
  requests>=2.26.0
27
  huggingface_hub>=0.10.1
 
1
+ # Ensure pip, setuptools, wheel are up-to-date before installing
2
+ # pip install --upgrade pip setuptools wheel
 
 
 
3
 
4
+ # Pin numpy below 2.x to avoid the "compiled with NumPy 1.x" error
5
+ numpy<2.0
6
+
7
+ # Some libraries may need a newer pybind11 to rebuild if needed
8
+ pybind11>=2.12
9
+
10
+ # PyTorch 2.1.0 includes torch.distributed.tensor
11
+ # Choose +cpu or +cu118 variants if needed for GPU support.
12
+ torch==2.1.0
13
+ torchvision==0.16.0
14
+
15
+ # Match Transformers with the above. 4.30+ uses torch.distributed.tensor, so it works with torch>=2.1
16
+ transformers==4.31.0
17
 
18
+ # Object Detection
19
  ultralytics>=8.0.0
20
 
21
+ # RealESRGAN dependencies
22
+ realesrgan==0.3.0
23
+ basicsr==1.4.2
24
+
25
+ # Gradio for the web UI
26
+ gradio>=3.16.2
27
+
28
  # Image processing
29
  opencv-python>=4.5.3.56
30
  Pillow>=9.0.0
 
31
 
32
+ # Wikipedia
33
  wikipedia>=1.4.0
34
 
 
 
 
 
35
  # Additional utilities
36
  requests>=2.26.0
37
  huggingface_hub>=0.10.1