2025-08-25 17:07:12 +08:00
2025-08-20 17:53:15 +08:00
2025-08-25 14:14:19 +08:00
2025-08-21 11:00:53 +08:00
2025-08-25 14:14:19 +08:00
2025-08-25 17:07:12 +08:00
2025-08-25 14:01:43 +08:00
2025-08-20 17:53:15 +08:00
2025-08-25 14:14:19 +08:00
2025-08-21 11:00:53 +08:00
2025-08-25 17:07:12 +08:00
2025-08-20 17:53:15 +08:00
2025-08-20 17:53:15 +08:00
2025-08-21 11:16:11 +08:00

Installation

参考Dockerfile构建运行镜像

Quickstart

测试程序

  1. 下载模型:https://modelscope.cn/models/AI-ModelScope/stable-diffusion-v1-5

  2. 运行测试程序

修改测试程序test.py里面的模型路径,直接执行即可

python3 test.py

批量测试程序

  1. 准备输入数据集dataset.json,可以参考示例dataset.json
  2. 运行测试程序
python3 main.py --model "/mnt/contest_ceph/zhanghao/models/stable-diffusion-v1-5" --json  "dataset.json" --results "results.json" --outdir "output" --device cuda --dtype fp16

测试结果

A100 平均生成时间(秒) 天垓100 平均生成时间(秒)
时间 1.4289 7.5609
Description
运行于【昇腾-910B4】系列算力卡的【文本生成图片】引擎,基于 diffusion 架构,支持 Stable Diffusion 等最新流行模型
Readme 50 KiB
Languages
Python 90.1%
Shell 8.1%
Dockerfile 1.8%