模型:
waifu-diffusion是一个潜在的文本到图像的传播模型,通过微调在高质量的动漫图片上进行了条件训练。
杰作,最高质量,1女孩,绿色头发,毛衣,凝视观众,上半身,小便帽,户外,水彩画,夜晚,高领
我们还支持使用Diffusers在Gradio和Colab上运行Waifu Diffusion的Web UI:
See here for a full model overview.
此模型是开放访问并可供所有人使用的,具有CreativeML OpenRAIL-M许可证,进一步规定了权利和使用方式。CreativeML OpenRAIL许可证规定:
该模型可用于娱乐目的和作为生成艺术助手。
import torch
from torch import autocast
from diffusers import StableDiffusionPipeline
pipe = StableDiffusionPipeline.from_pretrained(
'hakurei/waifu-diffusion',
torch_dtype=torch.float32
).to('cuda')
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"
with autocast("cuda"):
image = pipe(prompt, guidance_scale=6)["sample"][0]
image.save("test.png")
这个项目不可能没有Stability AI和Novel AI的不可思议的工作。
要与我们联系,请加入我们的 Discord server 。