As AI-generated art continues to evolve, creators are looking for ways to personalize their outputs — and that’s where Kohya-ss shines.
Kohya-ss is a powerful, open-source toolkit built for training custom Stable Diffusion models, especially LoRA (Low-Rank Adaptation) models. It’s become a go-to solution for AI artists who want to fine-tune image generation with minimal computing power.
In this blog, you’ll learn:
- 🧠 What Kohya-ss is
- 🛠️ How to install and set it up
- 🖼️ How to train your own LoRA models
- 🔁 How to use trained models with prompts
- 📦 Where to find and share your models (like Civitai)
🚀 What Is Kohya-ss?
Kohya-ss is a web-based GUI built on top of advanced AI training scripts. It simplifies the process of:
- Training LoRA models for Stable Diffusion
- Creating Textual Inversions
- Running DreamBooth or fine-tuning checkpoints
It’s ideal for:
- 🧑🎨 Artists training a model in their own style
- 📸 Photographers creating portrait-focused models
- 🎮 Designers crafting anime or game-style visuals
- 🧪 AI hobbyists experimenting with small datasets
🛠️ How to Install Kohya-ss (Windows, Linux, Mac)
🔗 Official GitHub:
https://github.com/bmaltais/kohya_ss
🧑💻 Installation Steps (for Windows):
- Install Dependencies:
- Python 3.10+
- Git
- CUDA toolkit (for NVIDIA GPU users)
- Visual Studio Build Tools
- Clone Repository:
git clone https://github.com/bmaltais/kohya_ss cd kohya_ss
- Run Setup Script:
./setup.bat
- Launch GUI:
./gui.bat
🔧 Mac/Linux users: Follow the same steps with minor tweaks (.sh
instead of .bat
, Python venv, etc.)
🎓 How to Train a LoRA Model with Kohya-ss
Step 1: Prepare Your Dataset
- Collect 10–30 high-quality images of your subject/style
- Use tools like WaifuDiffusion Tagger or [Booru taggers] to auto-tag
- Resize and crop images to 512×512 or 768×768
Step 2: Configure Training Settings
In the GUI, go to LoRA Training tab, and set:
- Model: Choose a base checkpoint (e.g.,
Stable Diffusion 1.5
) - Resolution: 512×512 (or 768×768)
- Learning rate: 1e-4 to 1e-5
- Batch size: Depends on your VRAM
- Epochs: 10–20 for starters
Step 3: Start Training
- Click “Train”
- Monitor output logs and training loss
The result will be a .safetensors
file (your LoRA model), ready to use in tools like:
- AUTOMATIC1111 Web UI
- ComfyUI
- InvokeAI
🖼️ How to Use Kohya-ss Models in Stable Diffusion
Once your LoRA is trained:
- Copy the
.safetensors
file into:/stable-diffusion-webui/models/Lora/
- In the prompt, activate your LoRA with:
<lora:model_name:0.8>
- Example prompt:
(masterpiece, 1girl, forest background, flowing dress), <lora:elven_princess:0.75>
- Adjust strength (0.6–1.0) for more/less stylistic influence
📚 Where to Find and Share LoRA Models
Upload or download your LoRA models via:
- 🌐 Civitai
- 🧠 Hugging Face
- 🖼️ ArtHub.ai
These platforms also allow you to browse example prompts, preview outputs, and rate models.
🧠 Pro Tips for Better Results
- Use captioned datasets for faster convergence
- Try textual inversion for embedding keywords into prompts
- Train style-specific LoRAs like anime, fantasy, photography, cyberpunk
- Don’t overtrain — too many epochs can cause overfitting
📈 Popular Use Cases
Use Case | Kohya-ss Advantage |
---|---|
✍️ Blog Illustrations | Train niche styles like watercolor or tech blog icons |
🎨 Digital Art Styles | Build a model in your signature artistic look |
🧑🎤 Character Modeling | Train LoRA models for fictional or real characters |
🛍️ Product Design | Conceptualize product packaging, mockups, and variations |
🧠 Final Thoughts
Kohya-ss empowers creators to take full control over how AI interprets their artistic vision. Whether you’re looking to personalize your AI art, create blog visuals, or explore fine-tuned prompts, this tool makes custom model training accessible — even for beginners.
By learning to use Kohya-ss, you’re not just generating art — you’re designing the intelligence behind it.