---
title: Nitro-Diffusion
canonical_url: "https://www.modelscope.cn/models/dienstag/Nitro-Diffusion"
md_url: "https://www.modelscope.cn/models/dienstag/Nitro-Diffusion.md"
repository: dienstag/Nitro-Diffusion
chinese_name: "多风格生成扩散模型 Nitro Diffusion"
last_updated: 2023-02-21
license: creativeml-openrail-m
pipeline_tag: text-to-image-synthesis
tasks:
  - text-to-image-synthesis
library_name:
  - pytorch
frameworks:
  - pytorch
downloads: 356
stars: 12
tags:
  - "text2image generation"
  - "stablediffusion model"
  - "stable diffusion"
  - "文到图"
  - "文生图"
  - "生成"
  - "图片生成"
  - "生成图片"
  - "ai作画"
  - "作画ai"
  - "作画"
---

# Nitro-Diffusion

> Nitro-Diffusion - dienstag 在 ModelScope 开源的模型。多风格生成扩散模型 Nitro Diffusion

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

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

Source: https://www.modelscope.cn/models/dienstag/Nitro-Diffusion

---

### 多风格生成扩散模型 Nitro Diffusion

欢迎使用Nitro Diffusion - 第一个从零训练的多风格模型！这是一个经过微调的Stable Diffusion模型，同时训练了三种艺术风格，同时保持每种风格与其他风格分离。这种训练方式允许高度控制混合、加权和单一风格的使用。

在prompt中使用关键字**_archer style, arcane style or modern disney style_**来实现对应效果。你也可以使用多个关键字以实现混合风格。


**如果你喜欢我的工作并且想抢先试用未发布的新模型，请考虑给我一些支持：**
[![Become A Patreon](https://badgen.net/badge/become/a%20patron/F96854)](https://patreon.com/user?u=79196446)

**多种风格角色生成：**
![Multi Samples](nitro-diff-samples-02.jpg)
**单一风格角色生成：**
![Single Samples](nitro-diff-samples-01.jpg)
**多种风格场景生成：**
![Misc. Samples](nitro-diff-samples-03.jpg)

**您可以在页面底部找到Batman和Lara Croft的动画GIF，动画显示了权重和prompt对生成效果的影响**

#### 盖尔加朵的prompt和设置：
**arcane archer modern disney gal gadot**
_Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 598801516, Size: 512x768_

#### 奥迪TT的prompt和设置：
**(audi TT car) arcane modern disney style archer**
_Steps: 30, Sampler: Euler a, CFG scale: 7, Seed: 713702776, Size: 768x512_


### 使用方式

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

pipe = pipeline(task=Tasks.text_to_image_synthesis,
                model='dienstag/Nitro-Diffusion',
                model_revision='v1.0.0')

prompt = "archer arcane style magical princess with golden hair"
output = pipe({'text': prompt})
cv2.imwrite('result.png', output['output_imgs'][0])
```


## License

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

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


## 视频演示
# Batman
![Batman](batman-demo-01.gif)
# Lara Croft
![Lara Croft](laracroft-demo-01.gif)
