Files
2026-09-11 01:41:52 +08:00

17 lines
737 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ============================================================================
# Fashion-CLIP 衣物分类服务依赖清单
# 安装:pip install -r requirements.txt
#
# 注意:PyPI 默认安装的是 CPU 版 torch。
# 如果你的机器有 NVIDIA GPU,请先按 PyTorch 官网命令单独安装对应 CUDA 版 torch,
# 再执行 pip install -r requirements.txt(已安装的 torch 会被跳过):
# pip install torch --index-url https://download.pytorch.org/whl/cu121
# ============================================================================
torch>=2.0.0
transformers>=4.30.0
fastapi>=0.100.0
uvicorn>=0.23.0
pillow>=9.5.0
python-multipart>=0.0.9 # FastAPI 处理 multipart 表单(/classify 上传图片)必需