---
title: waifu-diffusion
canonical_url: "https://www.modelscope.cn/models/dienstag/waifu-diffusion"
md_url: "https://www.modelscope.cn/models/dienstag/waifu-diffusion.md"
repository: dienstag/waifu-diffusion
chinese_name: "二次元女性角色生成器 waifu-diffusion v1.4"
last_updated: 2023-02-23
license: creativeml-openrail-m
pipeline_tag: text-to-image-synthesis
tasks:
  - text-to-image-synthesis
library_name:
  - pytorch
frameworks:
  - pytorch
downloads: 513
stars: 19
tags:
  - "text2image generation"
  - "stablediffusion model"
  - "stable diffusion"
  - "文到图"
  - "文生图"
  - "生成"
  - "图片生成"
  - "生成图片"
  - "ai作画"
  - "作画ai"
  - "作画"
---

# waifu-diffusion

> waifu-diffusion - dienstag 在 ModelScope 开源的模型。二次元女性角色生成器 waifu-diffusion v1.4

dienstag/waifu-diffusion 是 ModelScope 魔搭社区上的text-to-image-synthesis模型，采用 creativeml-openrail-m 许可。

- **Repository**: dienstag/waifu-diffusion
- **License**: creativeml-openrail-m
- **Tasks**: text-to-image-synthesis
- **Tags**: text2image generation, stablediffusion model, stable diffusion, 文到图, 文生图, 生成, 图片生成, 生成图片, ai作画, 作画ai, 作画
- **Downloads**: 513
- **Stars**: 19
- **Last updated**: 2023-02-23

Source: https://www.modelscope.cn/models/dienstag/waifu-diffusion

---

# 二次元女性角色生成器 waifu-diffusion v1.4


waifu-diffusion 基于latent diffusion模型打造，使用大量高质量动漫图片微调而来。

![image](example.png)

`masterpiece, best quality, 1girl, green hair, sweater, looking at viewer, upper body, beanie, outdoors, watercolor, night, turtleneck`


## 模型简介

[完整的模型简介请点击此处。](https://gist.github.com/harubaru/f727cedacae336d1f7877c4bbe2196e1)

## License

这个模型是开放的，所有人都可以使用，CreativeML OpenRAIL-M许可证进一步规定了权利和使用。CreativeML OpenRAIL许可证规定了：

1. 你不能使用这个模型来故意产生或分享非法或有害的输出或内容。
2. 作者对你产生的输出结果没有任何权利，你可以自由使用它们，并对它们的使用负责，但不得违反许可证中的规定。
3. 你可以重新发布模型权重，并在商业上作为一项服务使用该模型。如果你这样做，请注意你必须包括与许可证中相同的使用限制，并将CreativeML OpenRAIL-M的副本分享给你的所有用户（请完全仔细阅读许可证）。 [请在这里阅读完整的许可证](https://huggingface.co/spaces/CompVis/stable-diffusion-license)。

## 下游使用

该模型可用于娱乐目的和生成艺术助手。


## 使用方式

```python
from modelscope.utils.constant import Tasks
from modelscope.pipelines import pipeline
import cv2

pipe = pipeline(task=Tasks.text_to_image_synthesis,
                model='dienstag/waifu-diffusion',
                model_revision='v1.4')

prompt = '1girl, aqua eyes, baseball cap, blonde hair, closed mouth, earrings, green background, hat, hoop earrings, jewelry, looking at viewer, shirt, short hair, simple background, solo, upper body, yellow shirt'
output = pipe({'text': prompt, 'guidance_scale': 6})
cv2.imwrite('result.png', output['output_imgs'][0])

```

## 团队成员与鸣谢

感谢 Stability AI 和 Novel AI 的杰出贡献，使得这个项目成功完成。


- [Haru](https://github.com/harubaru)
- [Salt](https://github.com/sALTaccount/)
- [Sta @ Bit192](https://twitter.com/naclbbr)

使用Discord联系我们： [Discord server](https://discord.gg/touhouai).
