🚀 Anime Nouveau XL LoRA
Anime Nouveau XL LoRA は、Animagine XL 2.0 とシームレスに連携するように精巧に作られた革新的な LoRA(Low-Rank Adaptation)アダプターです。このモデルは、アニメ画像にアニメ・ヌーヴォー画風特有の豊かさと緻密な装飾を吹き込むように特別に設計されています。視覚的に魅力的で、細部にもこだわったアニメ画像を作成したいユーザーに最適です。
🚀 クイックスタート
このセクションでは、Anime Nouveau XL LoRA を使用するための基本的な手順を説明します。
Anime Nouveau XL LoRA
✨ 主な機能
- Animagine XL 2.0 と連携して、アニメ画像にアニメ・ヌーヴォー画風を追加します。
- 豊かな細部と装飾的な要素を持つ画像を生成できます。
📦 インストール
最新の 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")
📚 ドキュメント
モデル詳細
ウィジェット例
- 例1: 1girl
- プロンプト: 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
- 例2: 1boy
- プロンプト: 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
📄 ライセンス
このモデルは CreativeML Open RAIL++-M License の下で提供されています。