Text-to-Image
Diffusers
stable-diffusion
lora
naruto

Run this model with HF Jobs

Run Shibin22/sd15-naruto-run2-lora-r32 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/Shibin22/sd15-naruto-run2-lora-r32. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Shibin22/sd15-naruto-run2-lora-r32 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Shibin22/sd15-naruto-run2-lora-r32 - LoRA rank 32 (alpha 32) on UNet attention

LoRA adapter for stable-diffusion-v1-5/stable-diffusion-v1-5 fine-tuned on lambdalabs/naruto-blip-captions (DATA 266 Lab 2, Part 2).

Data

1098 training images (90 % split, seed 266) after removing 1 unusable image(s); 512x512 centre crops; BLIP captions as prompts. The test split (122 images) was used only for evaluation.

Training

setting value
method LoRA rank 32 (alpha 32) on UNet attention
trainable parameters 6,377,472
steps / batch size / resolution 1500 / 4 / 512
learning rate 0.0001 (AdamW, 100 warm-up steps, cosine), min-SNR gamma 5
precision torch.bfloat16 weights, float32 adapters
peak GPU memory 3.86 GB on NVIDIA GeForce RTX 4090
training time 8.7 min (0.145 GPU-hours)

Results (20 fixed prompts x 2 seeds, DPM-Solver 30 steps, guidance 7.5)

model KID in-domain (x1e3, lower=better) CLIP score all CLIP in-domain CLIP out-of-domain LPIPS diversity
base 132.50 +- 10.09 26.12 25.19 25.74 0.689
run2_lora_r32 18.17 +- 5.67 24.75 23.19 25.1 0.682

Use

from diffusers import StableDiffusionPipeline
pipe = StableDiffusionPipeline.from_pretrained("stable-diffusion-v1-5/stable-diffusion-v1-5").to("cuda")
pipe.load_lora_weights("Shibin22/sd15-naruto-run2-lora-r32")
pipe("a ninja with spiky blonde hair and a headband").images[0]

Limitations and license

Naruto characters are copyrighted; the training images come from Narutopedia via the BLIP-captioned dataset, whose card states no license. This adapter is for non-commercial research and teaching only. It inherits the CreativeML OpenRAIL-M license and the biases of SD 1.5; the captions are short, mostly about one male character, and repeat phrases ("a man with ..."), so prompts outside that pattern follow the style less reliably. Outputs were screened with an NSFW image classifier (filtered images are blurred and excluded from the metrics); the SD safety checker's flags are recorded for comparison.

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

Model tree for Shibin22/sd15-naruto-run2-lora-r32

Adapter
(821)
this model

Dataset used to train Shibin22/sd15-naruto-run2-lora-r32