Text-to-Image
Diffusers
stable-diffusion
lora
naruto
How to use from the
Use from the
Diffusers library
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline

# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("stable-diffusion-v1-5/stable-diffusion-v1-5", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("rohil542/naruto-sd15-run2_lora_r32")

prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]

rohil542/naruto-sd15-run2_lora_r32

LoRA adapter (LoRA r=32) for Stable Diffusion 1.5 that generates Naruto-style anime images. Load with pipe.load_lora_weights("rohil542/naruto-sd15-run2_lora_r32").

Data. lambdalabs/naruto-blip-captions, 1099 training images after removing 0 corrupted and 0 duplicate images (90/10 split, seed 266). Dataset license: None. Training. 2000 steps, batch 4, LR 0.0001 (cosine, 100 warmup), AdamW, fp16 + gradient checkpointing, rank 32 on attention projections, 6,377,472 trainable parameters, peak GPU memory 2.93 GB, 0.695 GPU-hours (seed 266). Results (20 fixed prompts, seeds 0/1, vs base): in-domain KID 0.0134 (base 0.1077), CLIP score 30.709999084472656 (base 32.2400016784668), LPIPS diversity 0.7514 (base 0.8088); human evaluation: not yet run. Limitations. Narrow style and cast; out-of-domain prompts are pulled toward the anime look; machine-made captions; small test set makes KID noisy; possible resemblance to training frames (see memorization check in the notebook). License / intended use. Trained on copyrighted anime frames: non-commercial research use only. CreativeML OpenRAIL-M applies to the base model.

Downloads last month
24
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for rohil542/naruto-sd15-run2_lora_r32

Adapter
(820)
this model

Dataset used to train rohil542/naruto-sd15-run2_lora_r32