AI Model Wiki

    Skip to main content
    7 min read
    Lesson 5 of 6

    Custom Models, LoRAs & Training

    From the course Stable Diffusion Mastery: Local AI Image Generation

    One of Stable Diffusion's greatest strengths is its ecosystem of custom models and LoRAs. These allow you to fine-tune the AI for specific styles, subjects, or quality improvements without training a full model.

    Understanding Model Types

    Checkpoints (Full Models)

    • Complete Stable Diffusion models (2-7GB each)
    • Define the base style and capabilities
    • Examples: Realistic Vision (photorealism), DreamShaper (creative), Juggernaut XL (versatile SDXL)

    LoRAs (Low-Rank Adaptation)

    • Small add-on files (10-200MB) that modify a base model's behavior
    • Train specific concepts: art styles, characters, objects, poses
    • Applied at generation time with adjustable strength
    • You can stack multiple LoRAs simultaneously

    Embeddings (Textual Inversions)

    • Tiny files (5-80KB) that define new "words" for the model
    • Used primarily in negative prompts for quality improvement
    • Examples: "EasyNegative," "bad-hands-5" — common quality embeddings

    VAE (Variational Autoencoder)

    • Handles the final conversion from latent space to pixels
    • Different VAEs affect color saturation and sharpness
    • Most modern models include a baked-in VAE

    Finding and Using LoRAs

    CivitAI is the primary marketplace:

    • Filter by base model (SD 1.5, SDXL, FLUX)
    • Sort by rating, downloads, or newest
    • Each LoRA page shows example images, recommended settings, and trigger words

    Using LoRAs:

    1. Download the LoRA file (.safetensors)
    2. Place in the models/Lora folder
    3. In your prompt, add: <lora:filename:weight>
    4. Weight 0.5–0.8 usually works best; 1.0 can be too strong

    Stacking LoRAs: "a portrait of a woman lora:style_watercolor:0.7 lora:better_lighting:0.5 lora:detail_enhancer:0.3"

    Training Your Own LoRA

    Training a custom LoRA lets you teach the model new concepts:

    What You Need:

    • 10-30 high-quality images of your subject/style
    • A training tool: Kohya_ss (most popular), LoRA Easy Training
    • 1-2 hours of GPU time (or cloud GPU rental)

    Steps:

    1. Prepare your dataset — crop, resize, and caption each image
    2. Choose your base model (SDXL recommended)
    3. Configure training parameters: learning rate (1e-4), epochs (10-30), resolution
    4. Run training — monitor loss curves for convergence
    5. Test the output LoRA at different weights

    Common Training Use Cases:

    • Personal likeness (for consistent character art)
    • Brand-specific style (maintaining visual identity)
    • Product photography (consistent product renders)
    • Art style replication (learning from a specific artist's technique)

    Best Practices:

    • More isn't always better — 15-20 quality images often outperform 100 mediocre ones
    • Diverse angles, lighting, and backgrounds improve generalization
    • Always test at multiple weights (0.3, 0.5, 0.7, 1.0)
    • Save checkpoints during training to compare quality at different epochs

    LoRAs are the secret weapon of professional SD users. A well-trained LoRA can define your unique visual style or create perfectly consistent characters across hundreds of images.

    Key Takeaways

    • •Checkpoints are full models (2-7GB); LoRAs are small add-ons (10-200MB) for specific styles or subjects
    • •CivitAI is the main marketplace for finding models, LoRAs, and embeddings
    • •LoRA weight of 0.5–0.8 usually works best; multiple LoRAs can be stacked
    • •Training your own LoRA requires 10-30 quality images and 1-2 hours of GPU time
    • •Well-trained LoRAs enable consistent characters, brand styles, and unique aesthetics
    0 of 6 lessons marked complete

    Progress is kept in this browser only.