Spaces:
Running
Running
Update requirements.txt
Browse files- requirements.txt +13 -15
requirements.txt
CHANGED
@@ -1,22 +1,20 @@
|
|
1 |
-
|
2 |
-
gradio[oauth,mcp]==5.34.2 # Gradio は HF-Hub ≥0.28.1 を要求:contentReference[oaicite:1]{index=1}
|
3 |
-
spaces==0.37.1
|
4 |
|
5 |
-
# ---
|
6 |
-
|
|
|
|
|
7 |
|
8 |
-
# --- ML
|
9 |
-
|
10 |
-
|
11 |
-
torchvision # 0.22.x 自動解決(Torch 2.1 系対応):contentReference[oaicite:4]{index=4}
|
12 |
accelerate==0.29.3
|
13 |
transformers==4.41.1
|
|
|
14 |
peft==0.11.1
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
# --- 数値計算 ---
|
19 |
-
numpy==1.26.4 # Torch 2.1 と互換、NumPy 2 ABI 衝突を回避:contentReference[oaicite:6]{index=6}
|
20 |
|
21 |
# --- CV / 画像処理 ---
|
22 |
opencv-python-headless
|
@@ -26,6 +24,6 @@ basicsr
|
|
26 |
realesrgan
|
27 |
onnxruntime-gpu
|
28 |
|
29 |
-
# --- API
|
30 |
fastapi
|
31 |
python-multipart
|
|
|
1 |
+
--extra-index-url https://download.pytorch.org/whl/cu118
|
|
|
|
|
2 |
|
3 |
+
# --- ZeroGPU & Gradio ---
|
4 |
+
gradio[mcp,oauth]==5.34.2
|
5 |
+
spaces==0.37.1
|
6 |
+
huggingface-hub>=0.30,<0.40 # gradio / diffusers と両立
|
7 |
|
8 |
+
# --- ML core ---
|
9 |
+
torch==2.3.1+cu118
|
10 |
+
torchvision==0.18.1+cu118
|
|
|
11 |
accelerate==0.29.3
|
12 |
transformers==4.41.1
|
13 |
+
diffusers==0.30.3
|
14 |
peft==0.11.1
|
15 |
+
xformers==0.0.27.post2 # torch 2.3.1 対応ビルド
|
16 |
+
safetensors
|
17 |
+
numpy==1.26.4 # NumPy 2.0 ABI 回避
|
|
|
|
|
18 |
|
19 |
# --- CV / 画像処理 ---
|
20 |
opencv-python-headless
|
|
|
24 |
realesrgan
|
25 |
onnxruntime-gpu
|
26 |
|
27 |
+
# --- API / ASGI ---
|
28 |
fastapi
|
29 |
python-multipart
|