模型:

DGSpitzer/Cyberpunk-Anime-Diffusion

英文

Cyberpunk Anime Diffusion

一个生成赛博朋克动漫角色的AI模型!~

基于经过微调的Waifu Diffusion V1.3模型与稳定的Diffusion V1.5 New Vae,训练在Dreambooth中

由 DGSpitzer 提供

🧨扩散器

该代码库包含.ckpt和Diffuser模型文件。它兼容作为任何Stable Diffusion模型使用,使用标准 Stable Diffusion Pipelines 。

您可以将此模型转换为 ONNX , MPS 和/或 FLAX/JAX 。

#!pip install diffusers transformers scipy torch
from diffusers import StableDiffusionPipeline
import torch

model_id = "DGSpitzer/Cyberpunk-Anime-Diffusion"
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
pipe = pipe.to("cuda")

prompt = "a beautiful perfect face girl in dgs illustration style, Anime fine details portrait of school girl in front of modern tokyo city landscape on the background deep bokeh, anime masterpiece, 8k, sharp high quality anime"
image = pipe(prompt).images[0]

image.save("./cyberpunk_girl.png")

在线演示

您可以尝试用 Gradio 构建的在线Web UI演示,或者在此使用Colab笔记本:

我的在线空间演示

由anzorq提供的Fine-tuned Diffusion WebUI演示

Colab笔记本

如果你喜欢这个项目,就买杯咖啡给我喝吧;P ♥

👇模型👇

可在huggingface上获取AI模型权重: https://huggingface.co/DGSpitzer/Cyberpunk-Anime-Diffusion

用法

模型加载完成后,可以使用关键词dgs,加上插图风格来获得更好的结果。

对于采样器,使用Euler A以获得最佳结果(DDIM也行),CFG Scale 7,步数20应该就可以。

示例1:

portrait of a girl in dgs illustration style, Anime girl, female soldier working in a cyberpunk city, cleavage, ((perfect femine face)), intricate, 8k, highly detailed, shy, digital painting, intense, sharp focus

对于赛博机器人男性角色,可以添加muscular male来改善输出质量。

示例2:

a photo of muscular beard soldier male in dgs illustration style, half-body, holding robot arms, strong chest

示例3(使用稳定扩散器WebUI):

如果使用 AUTOMATIC1111's Stable Diffusion WebUI

您可以将其用作提示,使用Euler A采样器,CFG Scale 7,步数20,输出分辨率为704 x 704像素:

an anime girl in dgs illustration style

并将负提示设置为以下内容以获得更清晰的脸部:

out of focus, scary, creepy, evil, disfigured, missing limbs, ugly, gross, missing fingers

这将使您得到与上面示例图像完全相同的风格。

注意:使用该模型意味着接受稳定扩散的CreativeML Open RAIL-M许可协议