ahuggingface01 commited on
Commit
e13728c
·
verified ·
1 Parent(s): 8d5949c

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +14 -16
requirements.txt CHANGED
@@ -1,27 +1,25 @@
1
- # --- 核心框架与 UI ---
2
  gradio==4.44.1
3
- spaces
4
- numpy>=1.24.3,<2.0.0
5
  opencv-python==4.8.0.76
6
  Pillow==10.0.0
 
 
 
 
 
7
 
8
- # --- FLUX 图像生成相关 ---
9
- # 使用特定的 Git commit 以确保 FLUX 管道的最新兼容性
10
- git+https://github.com/huggingface/diffusers.git
11
- transformers==4.42.4
12
  accelerate==0.33.0
13
- safetensors==0.4.3
14
  sentencepiece==0.2.0
 
 
15
  torch>=2.4.0
16
  torchvision
17
  torchaudio
18
 
19
- # --- 人脸分析与换脸 (InsightFace) ---
20
- # insightface 0.7.3 是目前最稳定的版本
21
  insightface==0.7.3
22
- # 必须使用 GPU 版本且版本需与 CUDA 12.x/11.x 匹配
23
- onnxruntime-gpu==1.19.0
24
- # 关键:insightface 依赖旧版 protobuf,否则会报错
25
- protobuf==3.20.3
26
- # 其他辅助
27
- tqdm
 
1
+ # UI and Image Handling
2
  gradio==4.44.1
 
 
3
  opencv-python==4.8.0.76
4
  Pillow==10.0.0
5
+ numpy>=1.24.3,<2.0.0
6
+
7
+ # GPU & ZeroGPU Support
8
+ spaces
9
+ onnxruntime-gpu==1.19.0
10
 
11
+ # Generative AI (FLUX)
12
+ diffusers==0.30.2
13
+ transformers==4.44.0
 
14
  accelerate==0.33.0
15
+ safetensors==0.4.4
16
  sentencepiece==0.2.0
17
+
18
+ # Deep Learning
19
  torch>=2.4.0
20
  torchvision
21
  torchaudio
22
 
23
+ # Face Swapping
 
24
  insightface==0.7.3
25
+ protobuf==3.20.3