LoRA Training Guide: Train a Character or Style LoRA (2026)
How to train an image LoRA: dataset size and captions, tools like kohya sd-scripts, OneTrainer and AI Toolkit, key settings and testing for overfitting.
A LoRA teaches a base model something specific: a character, product, style or concept. Training your own is very achievable.
1. Choose the base model
Train on the model family you will generate with: SDXL (or a fine-tune), FLUX.1, Qwen-Image and so on. LoRAs do not transfer between families.
2. Build the dataset
- Characters and objects: 15-40 images with varied angles, lighting, backgrounds and expressions.
- Styles: 30-100+ images across varied subjects in the same style.
- Crop sensibly; remove duplicates, blur and watermarks.
- Use images you have rights to.
3. Caption
Captions describe what varies (pose, background, clothing). The consistent concept is learned under a trigger word. Use tags for anime bases and sentences for FLUX-style bases. Auto-captioning tools help; review them.
4. Pick a tool
- kohya-ss sd-scripts and GUIs built on it: flexible, widely documented.
- OneTrainer: a capable GUI trainer.
- AI Toolkit: popular for FLUX-family LoRAs.
5. Key settings
- Rank (dim): 8-32 is common; higher captures more but risks overfitting.
- Learning rate: start with the tool’s recommended preset for your base.
- Epochs / steps: save checkpoints regularly.
- Resolution: match the base model’s native size.
6. Test for overfitting
Generate the same prompts with checkpoints from different epochs. Overfit LoRAs copy backgrounds and poses from the dataset and ignore prompts. Pick the earliest checkpoint that captures the concept.
Ethics and law
Do not train on a real person without explicit consent, and never for sexual or deceptive imagery. See textual inversion for a lighter alternative.
Common questions
How many images do I need to train a LoRA?
For a character or object, 15-40 varied, high-quality images is common. Styles benefit from more variety, often 30-100+.
How much VRAM do I need to train a LoRA?
SDXL LoRAs can train on 12-16 GB with memory optimisations; FLUX LoRAs commonly need 16-24 GB or more, with quantised training reducing requirements.
Can I train a LoRA of a real person?
Only with their explicit consent, and never for sexual or deceptive content. Many platforms prohibit real-person LoRAs entirely.
Related reading
How to Use LoRAs: Strength, Trigger Words and Stacking
GuideSpeed Up AI Image Generation: 10 Proven Techniques
GuideSeeds and Reproducibility: Recreating AI Images Exactly
Free toolImage Prompt Generator
Browse more: all guides · comparisons · glossary · free tools