超
gcw_g59KKkes/fashion-clip
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

patrickjohncyh/fashion-clip

昇腾 NPU (torch-npu) 适配版。CLIP 服装图像-文本匹配模型。

使用

# CLI 单图推理
python inference.py --img test_input.png --text "a red dress"

# FastAPI 服务 (POST /predict 上传图片)
python inference.py --server
  • 权重缓存:./model_weights/patrickjohncyh/fashion-clip(本地优先,推理不联网)
  • 设备:npu:0(torch_npu),无任何 CUDA 依赖
  • 验证:CLI 与 FastAPI 均在 Ascend910 上推理成功