CivArchive
    20250604-june-khmer001 - V1
    NSFW
    Preview 80423464
    Preview 80423463
    Preview 80423466

    This configuration file is for fine-tuning a Stable Diffusion model using LoRA (Low-Rank Adaptation) and DreamBooth techniques to generate images from text prompts. It’s similar to the previous config but with some key differences (e.g., fewer epochs, more repeats). Below is a simplified summary of each section, making it easy to understand.


    Summary

    The goal is to fine-tune a pre-trained Stable Diffusion model to generate images based on a specific dataset of images and captions. The training uses LoRA to efficiently update the model, runs on a GPU with memory-saving techniques, and saves the model after each epoch. The dataset is processed with 7 repeats per image, trained for 11 epochs, and optimized for high-quality output at 1024x1024 resolution.


    1. Datasets Section

    • What it does: Defines the dataset of images and captions.

    • Key settings:

      • Images are in /workspace/training/.../img.

      • Each image is repeated 7 times (num_repeats = 7) to help the model learn better.

    • Simple explanation: The model learns from a set of images and their text descriptions, repeating each image 7 times to ensure thorough learning.


    2. General Section

    • What it does: Sets how images are processed for training.

    • Key settings:

      • Images are resized to 1024x1024 (resolution = 1024).

      • Captions are shuffled (shuffle_caption = true), but the first 3 words stay in order (keep_tokens = 3).

      • Images are randomly flipped horizontally (flip_aug = true) to add variety.

      • Captions are in .txt files (caption_extension = ".txt").

      • Images are grouped by resolution into buckets (enable_bucket = true) from 256x256 to 2048x2048, in steps of 64 pixels, without upscaling (bucket_no_upscale = true).

    • Simple explanation: Images are standardized to a square 1024x1024 size, and the model gets varied data through flipping and shuffled captions. Buckets organize images efficiently.


    3. Additional Network Arguments

    • What it does: Configures LoRA, a method to fine-tune the model efficiently.

    • Key settings:

      • Learning rates for image (unet_lr = 1.0) and text (text_encoder_lr = 1.0) parts are set high for fast learning.

      • LoRA layers have a size of 64 (network_dim = 64) and a scaling factor of 32 (network_alpha = 32).

      • Uses LoRA (network_module = "networks.lora").

    • Simple explanation: LoRA tweaks only a small part of the model, making training faster and less resource-heavy. These settings control how much the model learns about images and text.


    4. Optimizer Arguments

    • What it does: Defines how the model updates during training.

    • Key settings:

      • Uses the Prodigy optimizer (optimizer_type = "Prodigy") with a learning rate of 1.0 (learning_rate = 1.0).

      • Learning rate decreases gradually (lr_scheduler = "cosine") with no warmup (lr_warmup_steps = 0).

      • Includes settings like decouple=True and weight_decay=0.5 to stabilize training and prevent overfitting.

    • Simple explanation: The optimizer adjusts the model to improve it. Prodigy makes smart updates, and these settings ensure steady, reliable learning.


    5. Training Arguments

    • What it does: Controls the training process.

    • Key settings:

      • Trains for 11 epochs (max_train_epochs = 11), no step limit (max_train_steps = 0).

      • Saves the model after every epoch (save_every_n_epochs = 1) and generates sample images (sample_every_n_epochs = 1) using prompts from /workspace/.../sample_prompts.txt.

      • Uses 5 images per batch (train_batch_size = 5) and the Euler Ancestral sampler (sample_sampler = "euler_a") for samples.

      • Adds slight noise to images (noise_offset = 0.03) for better quality.

      • Uses bfloat16 precision (save_precision = "bf16", mixed_precision = "bf16") for faster training on GPUs.

      • Saves models to /workspace/training/.../model with the name 20250604-june-khmer001 in .safetensors format.

      • Enables memory-saving techniques like xformers = true, sdpa = true, and gradient_checkpointing = true.

      • Uses 8 workers to load data (max_data_loader_n_workers = 8) for speed.

    • Simple explanation: The model trains for 11 full passes through the dataset, saving and testing itself after each pass. It uses 5 images at a time, runs efficiently on a GPU, and saves models in a compact format.


    6. Advanced Training Config

    • What it does: Fine-tunes training for better image quality.

    • Key settings:

      • Adds noise at multiple resolutions for 6 iterations (multires_noise_iterations = 6) with a 30% reduction each step (multires_noise_discount = 0.3).

      • Uses a minimum signal-to-noise ratio (min_snr_gamma = 5.0) to focus on clear data.

    • Simple explanation: These settings improve image details by carefully managing noise during training.


    7. Model Arguments

    • What it does: Specifies the starting model.

    • Key settings:

      • Uses a pre-trained Stable Diffusion model from /model_cache/@civitai/290640/290640.safetensors.

      • Not a Stable Diffusion v2 model (v2 = false).

    • Simple explanation: The training starts with an existing model and fine-tunes it for your dataset.


    8. Saving Arguments

    • What it does: Defines how the model is saved.

    • Key settings:

      • Saves in .safetensors format (save_model_as = "safetensors").

    • Simple explanation: The model is saved in a secure, efficient format for later use.


    9. DreamBooth Arguments

    • What it does: Supports DreamBooth, a method for personalized image generation.

    • Key settings:

      • Balances new data and pre-trained knowledge equally (prior_loss_weight = 1.0).

    • Simple explanation: DreamBooth helps the model learn specific styles or subjects while keeping its general image-making skills.


    10. Dataset Arguments

    • What it does: Optimizes dataset handling.

    • Key settings:

      • Pre-computes image encodings (cache_latents = true) to speed up training.

    • Simple explanation: Pre-processing images saves time during training.


    Description

    Key Differences from Previous Config

    • Epochs: Reduced from 50 to 11 (max_train_epochs = 11), meaning shorter training.

    • Repeats: Increased from 4 to 7 (num_repeats = 7), so each image is used more often.

    • Output Name: Changed to 20250604-june-khmer001 from 292025--jhmer-midjouirneyr.

    • Dataset Path: Uses a different directory (d99c0d9e-1ad0-4e3e-a090-76f1272f93ba vs. 9a43c36c-c594-4d84-a326-d14eca302fcd), likely a different dataset.

    What to Expect

    • The model will train on a dataset of images (number unknown, but repeated 7 times) for 11 epochs, saving a checkpoint after each epoch (11 files total, named 20250604-june-kh2001-000001.safetensors to 20250604-june-khmer001.safetensors).

    • Sample images will be generated each epoch using prompts from sample_prompts.txt to check progress.

    • Training is optimized for speed and quality, using a GPU with bfloat16 precision and techniques like xFormers and gradient checkpointing.

    • The final model (20250604-june-khmer001.safetensors) will be saved in /workspace/training/.../model.

    Next Steps

    • Check Samples: Look at the sample images generated each epoch to see how the model improves.

    • Test Checkpoints: Try the final model or earlier checkpoints to find the best one for your needs.

    • Adjust if Needed: If the results aren’t great, consider tweaking max_train_epochs, num_repeats, or learning_rate.

    If you share a training log (like the previous one), I can analyze the progress. Let me know if you need help with specific tweaks or interpreting results!

    LORA
    Pony

    Looks like we don't have an active mirror for this file right now.

    CivArchive is a community-maintained index — we catalog mirrors that volunteers upload to HuggingFace, torrents, and other public hosts. Looks like no one has uploaded a copy of this file yet.

    Some files do get recovered over time through contributions. If you're looking for this one, feel free to ask in Discord, or help preserve it if you have a copy.

    Details

    Downloads
    0
    Platform
    CivitAI
    Platform Status
    Deleted
    Created
    6/5/2025
    Updated
    6/6/2026
    Deleted
    6/6/2025
    Trigger Words:
    chweeee1

    Files

    20250604-june-khmer001.safetensors

    Mirrors