🚀 Anime Nouveau XL LoRA
Anime Nouveau XL LoRA是一款創新的LoRA(低秩自適應)適配器,專為與Animagine XL 2.0無縫協作而精心打造。該模型能為動漫風格的圖像融入Anime Nouveau藝術風格特有的豐富細節和精美裝飾,非常適合想要創作不僅視覺驚豔而且藝術細節豐富的動漫圖像的用戶。
🚀 快速開始
安裝依賴
確保安裝最新的 diffusers
庫以及其他必要的包:
pip install diffusers --upgrade
pip install transformers accelerate safetensors
使用示例
以下Python腳本展示瞭如何將Anime Nouveau XL LoRA與Animagine XL 2.0結合使用。默認調度器為EulerAncestralDiscreteScheduler,但為了清晰起見,可以顯式定義。
import torch
from diffusers import (
StableDiffusionXLPipeline,
EulerAncestralDiscreteScheduler,
AutoencoderKL
)
lora_model_id = "Linaqruf/anime-nouveau-xl-lora"
lora_filename = "anime-nouveau-xl.safetensors"
vae = AutoencoderKL.from_pretrained(
"madebyollin/sdxl-vae-fp16-fix",
torch_dtype=torch.float16
)
pipe = StableDiffusionXLPipeline.from_pretrained(
"Linaqruf/animagine-xl-2.0",
vae=vae,
torch_dtype=torch.float16,
use_safetensors=True,
variant="fp16"
)
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
pipe.to('cuda')
pipe.load_lora_weights(lora_model_id, weight_name=lora_filename)
pipe.fuse_lora(lora_scale=0.6)
prompt = "face focus, cute, masterpiece, best quality, 1girl, sketch, monochrome, greyscale, green hair, sweater, looking at viewer, upper body, beanie, outdoors, night, turtleneck"
negative_prompt = "lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry"
image = pipe(
prompt,
negative_prompt=negative_prompt,
width=1024,
height=1024,
guidance_scale=12,
num_inference_steps=50
).images[0]
pipe.unfuse_lora()
image.save("anime_girl.png")
✨ 主要特性
Anime Nouveau XL LoRA是一款先進的模型適配器,通過為圖像增添Anime Nouveau風格,增強了Animagine XL 2.0的功能。這種風格以其豐富的細節和裝飾性的點綴而聞名,將現代動漫藝術與經典、細緻的美學完美融合。
📦 安裝指南
確保安裝最新的 diffusers
庫以及其他必要的包:
pip install diffusers --upgrade
pip install transformers accelerate safetensors
📚 詳細文檔
模型詳情
示例圖片
示例提示
- 示例1
- 提示詞:face focus, cute, masterpiece, best quality, 1girl, green hair, sweater, looking at viewer, upper body, beanie, outdoors, night, turtleneck
- 負面提示詞:lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry
- 示例標題:1girl
- 示例2
- 提示詞:face focus, bishounen, masterpiece, best quality, 1boy, green hair, sweater, looking at viewer, upper body, beanie, outdoors, night, turtleneck
- 負面提示詞:lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry
- 示例標題:1boy
📄 許可證
本模型採用 CreativeML Open RAIL++-M License 許可證。