粉发男孩戴眼镜,照片,运动身材,电影般的灯光,明亮的眼睛,完美的脸庞,红晕,美丽的鼻子,美丽的眼睛,详细的眼神
动漫扩散2是基于Vintedois(22h)扩散模型的潜在文本到图像扩散模型,该模型是使用来自Danbou set + 鬼灭之刃 + 4ch的艺术作品的BLIP标题进行训练的
该模型是公开访问的,可供所有人使用,并具有CreativeML OpenRAIL-M许可进一步指定权利和使用方式。CreativeML OpenRAIL许可证规定:
该模型可用于娱乐和生成艺术助手。
import torch
from torch import autocast
from diffusers import StableDiffusionPipeline
pipe = StableDiffusionPipeline.from_pretrained(
'AlexWortega/AnimeDiffuion2',
torch_dtype=torch.float32
).to('cuda')
negative_prompt = """low-res, duplicate, poorly drawn face, ugly, undetailed face"""
d = 'white girl'
prompt = f"pink hair guy in glasses, photograph, sporty body, cinematic lighting, clear eyes, perfect face, blush, beautiful nose, beautiful eyes, detailed eyes"
num_samples = 1
with torch.inference_mode():
images = pipe([prompt] * num_samples,
negative_prompt = [negative_prompt]*num_samples,
height=512, width=512,
num_inference_steps=50,
guidance_scale=8,
).images
images[0].save("test.png")
如果没有 CompVis Researchers 的出色工作,这个项目将无法实现。
为了联系我,这是我的博客: