Downloads · 30 days
16
1% of all-time downloads
alibaba-pai/pai-diffusion-food-large-zh
pai-diffusion-food-large-zh is a text-to-image model from alibaba-pai. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as apache-2.0.
Downloads · 30 days
16
1% of all-time downloads
All-time downloads
2.4K
Public
Repo size
25.8 GB
Likes
3
Public
Click a slice to open those files.
.bin5.4 GB · 100%
From the Hugging Face model README
我们开源了一个中文 Lattent Diffusion 模型(美食)
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")