# --- UI / ZeroGPU --- gradio[oauth,mcp]==5.34.2 # Gradio は HF-Hub ≥0.28.1 を要求:contentReference[oaicite:1]{index=1} spaces==0.37.1 # --- Hub / Model I/O --- huggingface-hub>=0.30.2,<0.40 # 0.30 系は新 API 安定版:contentReference[oaicite:2]{index=2} # --- ML Core --- diffusers==0.30.3 # 0.30+ で cached_download 廃止:contentReference[oaicite:3]{index=3} torch==2.1.2 torchvision # 0.22.x 自動解決(Torch 2.1 系対応):contentReference[oaicite:4]{index=4} accelerate==0.29.3 transformers==4.41.1 peft==0.11.1 safetensors>=0.5.3 # 0.5 系は Diffusers の推奨レンジ:contentReference[oaicite:5]{index=5} xformers==0.0.30 # Torch 2.1 用 pre-built wheel が存在 # --- 数値計算 --- numpy==1.26.4 # Torch 2.1 と互換、NumPy 2 ABI 衝突を回避:contentReference[oaicite:6]{index=6} # --- CV / 画像処理 --- opencv-python-headless Pillow insightface basicsr realesrgan onnxruntime-gpu # --- API グルー --- fastapi python-multipart