data266-p2-pokemon-run2_full_unet
Stable Diffusion 1.5 fine-tuned on Pokémon images for DATA 266 Lab 2, Part 2 (SJSU).
Base model
stable-diffusion-v1-5/stable-diffusion-v1-5
Data
reach-vb/pokemon-blip-captions (BLIP captions). Corrupted and duplicate images removed, 90/10 train/test split with seed 266, images resized to 512x512, random horizontal flip during training. Train images: 750, test images: 83.
Training settings
| Setting | Value |
|---|---|
| Method | Full UNet fine-tune |
| LoRA rank | - |
| Trainable parameters | 859,520,964 |
| Learning rate | 1e-05 |
| Steps | 3000 |
| Batch size | 4 |
| Mixed precision | bf16 |
| Peak GPU memory | 16.53 GB |
| Training time | 18.29 min (0.305 GPU-hours) |
| GPU | NVIDIA GeForce RTX 5090 |
Results (20 fixed prompts x seeds 0 and 1)
| Metric | Base SD 1.5 | This model |
|---|---|---|
| KID in-domain (lower is better) | 0.0673 | 0.0298 |
| CLIP score (all prompts) | 27.079999923706055 | 25.850000381469727 |
| LPIPS diversity | 0.8335 | 0.7615 |
How to use
from diffusers import StableDiffusionPipeline, UNet2DConditionModel
pipe = StableDiffusionPipeline.from_pretrained("stable-diffusion-v1-5/stable-diffusion-v1-5")
pipe.unet = UNet2DConditionModel.from_pretrained("<this repo id>", subfolder="unet")
Limitations
- Trained on about 750 images of single characters on white backgrounds, so it follows out-of-domain and multi-character prompts poorly.
- Captions were machine-generated by BLIP and are short and sometimes wrong.
- KID is noisy with only 20 generated images.
License and intended use
CC-BY-NC-SA-4.0. Pokémon are copyrighted characters: non-commercial research and education only.