nbeerbower/fixbody-dpo-captioned
Viewer • Updated • 86 • 12
How to use schneewolflabs/NikuXL-v0.1 with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("schneewolflabs/NikuXL-v0.1", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]Experimental SDXL anime checkpoint, trained with Direct Preference Optimization against an in-house preference set focused on body / anatomy fixes (fixbody-dpo-captioned, fixbody-dpo-danbooru).
Part of the "Niku" line, which traces back to NikuNiku900 — a long-running Schneewolf Labs anime-art project. NikuXL v0.1 was the first DPO experiment in the line, exploring whether preference learning could nudge an SDXL anime mix toward better anatomy and softer rendering without retraining the whole stack.
Standard SDXL checkpoint — works in any SDXL-compatible runner (AUTOMATIC1111, ComfyUI, diffusers).
from diffusers import StableDiffusionXLPipeline
import torch
pipe = StableDiffusionXLPipeline.from_single_file(
"NikuXLv0.1.safetensors",
torch_dtype=torch.float16,
).to("cuda")
image = pipe(
"1girl, anime style, masterpiece, soft lighting, portrait",
negative_prompt="lowres, bad anatomy, blurry, photorealistic, 3d",
width=1024,
height=1024,
num_inference_steps=28,
guidance_scale=7.0,
).images[0]
Inherits the SDXL license (CreativeML Open RAIL++-M).
Base model
stabilityai/stable-diffusion-xl-base-1.0