Spaces:
Build error
Build error
Create requirements.txt
Browse files- requirements.txt +36 -0
requirements.txt
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ===== Core ML Stack =====
|
| 2 |
+
# 使用PyTorch 2.x以获得更好的性能
|
| 3 |
+
torch==2.5.1
|
| 4 |
+
torchvision==0.20.1
|
| 5 |
+
|
| 6 |
+
# Stable Diffusion + LoRA
|
| 7 |
+
diffusers==0.31.0
|
| 8 |
+
transformers==4.46.3
|
| 9 |
+
accelerate==1.1.1
|
| 10 |
+
safetensors==0.4.5
|
| 11 |
+
peft==0.13.2
|
| 12 |
+
compel==2.0.3
|
| 13 |
+
|
| 14 |
+
# huggingface_hub版本必须<1.0以兼容transformers 4.46.3
|
| 15 |
+
# 使用稳定版本避免版本冲突
|
| 16 |
+
huggingface-hub>=0.23.2,<1.0
|
| 17 |
+
|
| 18 |
+
# Gradio Interface
|
| 19 |
+
gradio==5.5.0
|
| 20 |
+
spaces==0.30.3
|
| 21 |
+
|
| 22 |
+
# Core Utilities
|
| 23 |
+
Pillow==11.0.0
|
| 24 |
+
numpy==1.26.4
|
| 25 |
+
python-dateutil==2.9.0.post0
|
| 26 |
+
|
| 27 |
+
# Optional: xFormers for additional memory optimization
|
| 28 |
+
# 如果环境支持,取消注释以下行
|
| 29 |
+
# xformers==0.0.28.post2
|
| 30 |
+
|
| 31 |
+
# For logging / error handling
|
| 32 |
+
requests==2.32.3
|
| 33 |
+
tqdm==4.66.5
|
| 34 |
+
|
| 35 |
+
# Optional visualization/debugging
|
| 36 |
+
matplotlib==3.9.2
|