Files
enginex-mr_series-diffusers/README.md

25 lines
868 B
Markdown
Raw Normal View History

2025-08-25 14:14:19 +08:00
## Quickstart
2025-08-26 18:13:06 +08:00
### 构建镜像
2025-08-25 14:14:19 +08:00
```bash
2025-08-26 18:13:06 +08:00
docker build -t diffusers:v0.1 .
2025-08-25 14:14:19 +08:00
```
2025-09-15 17:44:24 +08:00
其中,基础镜像 corex:4.3.0 通过联系天数智芯智铠100厂商技术支持可获取
2025-08-25 14:14:19 +08:00
2025-08-26 18:13:06 +08:00
### 模型下载
模型地址https://modelscope.cn/models/AI-ModelScope/stable-diffusion-v1-5
并放到目录:`/mnt/contest_ceph/zhanghao/models/stable-diffusion-v1-5`(如更改目录,请修改后面的执行脚本中的模型路径)
### 测试程序
1. 准备输入数据集,可以参考示例`dataset.json`
2. 在docker镜像里运行测试程序会根据`dataset.json`内容,在`output`目录下生成图片文件。
2025-08-25 14:14:19 +08:00
```bash
2025-08-26 18:13:06 +08:00
./run_in_docker.sh
2025-08-25 14:14:19 +08:00
```
## 测试结果
2025-08-26 20:36:24 +08:00
| | A100 平均生成时间(秒) | 智铠100 平均生成时间(秒) |
2025-08-25 14:14:19 +08:00
|------|-------------------------|----------------------------|
2025-08-26 20:36:24 +08:00
| 时间 | 1.5 | 4.1 |
2025-08-25 14:14:19 +08:00