File size: 507 Bytes
96b5d0f 2b7b2cd 96b5d0f 2b7b2cd 02640dd 2b7b2cd 02640dd 2b7b2cd 02640dd 2b7b2cd 02640dd 2b7b2cd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
---
license: apache-2.0
tags:
- pytorch
- diffusers
- text-to-image
---
# Chinese Latent Diffusion Model
我们开源了一个中文 Lattent Diffusion 模型(美食)
* Github: [EasyNLP](https://github.com/alibaba/EasyNLP)
```python
from diffusers import StableDiffusionPipeline
model_id = "alibaba-pai/pai-diffusion-food-large-zh"
pipe = StableDiffusionPipeline.from_pretrained(model_id)
pipe = pipe.to("cuda")
prompt = "番茄炒蛋"
image = pipe(prompt).images[0]
image.save("result.png")
```
|