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.
Instructions to use Shibin22/sd15-naruto-run2-lora-r32 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Shibin22/sd15-naruto-run2-lora-r32 with Diffusers:
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("Shibin22/sd15-naruto-run2-lora-r32") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
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
Model tree for Shibin22/sd15-naruto-run2-lora-r32
Base model
stable-diffusion-v1-5/stable-diffusion-v1-5