Downloads · 30 days
24
4% of all-time downloads
alibaba-pai/pai-diffusion-artist-large-zh-lora-poem
pai-diffusion-artist-large-zh-lora-poem 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.
我们开源了适配中文 Diffusion 模型 alibaba-pai/pai-diffusion-artist-large-zh 的 LoRA,您可以输入中国古诗词,模型将会根据诗句生成古风水墨配图。
Downloads · 30 days
24
4% of all-time downloads
All-time downloads
550
Public
Repo size
102 MB
Likes
2
Public
Click a slice to open those files.
.bin102 MB · 99%
From the Hugging Face model README
我们开源了适配中文 Diffusion 模型 alibaba-pai/pai-diffusion-artist-large-zh 的 LoRA,您可以输入中国古诗词,模型将会根据诗句生成古风水墨配图。
We release a LoRA for our Chinese diffusion model alibaba-pai/pai-diffusion-artist-large-zh. This model can generate Chinese ink paintings according to the poem you input.
from diffusers import StableDiffusionPipeline
model_id = "alibaba-pai/pai-diffusion-artist-large-zh"
pipe = StableDiffusionPipeline.from_pretrained(model_id)
pipe.unet.load_attn_procs("alibaba-pai/pai-diffusion-artist-large-zh-lora-poem")
pipe = pipe.to("cuda")
prompt = "大漠孤烟直,长河落日圆"
image = pipe(prompt, cross_attention_kwargs={"scale": 0.4}).images[0]
image.save("result.png")
| prompt: 大漠孤烟直,长河落日圆 | prompt: 接天莲叶无穷碧,映日荷花别样红 |
|---|---|
| scale: 0.6 | scale: 0.4 |
![]() | ![]() |
使用上述模型需遵守AIGC模型开源特别条款。
If you want to use this model, please read this document carefully and abide by the terms.