Training Your Own LoRA
A LoRA is a small trained add on that teaches a base model a specific face, product, or style. It is how you get a model that draws your client's mascot or your exact house style on demand. Training one is now a job of dataset quality more than GPU wrangling. This lesson walks the full process.
Step 1: Build a clean dataset
Quality beats quantity. For a face, 15 to 30 sharp, varied images (different angles, lighting, expressions) beat hundreds of similar ones. Crop tight on the subject, remove duplicates, and keep the resolution consistent. The dataset is 80 percent of the result.
Step 2: Caption the images
Each image gets a text caption with a unique trigger word. The trigger is the handle you will later put in prompts to summon the LoRA. Describe what varies (the pose, the setting) and keep the trigger constant so the model binds your subject to that word.
sks_mascot, a friendly blue fox mascot standing,
front view, plain studio background
# "sks_mascot" is the trigger word, reused in every caption
# everything else describes only what changes in this imageStep 3: Train and test
Use a trainer like the open source kohya scripts, the ai-toolkit project for Flux, or a hosted trainer on Fal or Replicate. The key dials are learning rate, steps, and rank. Start with the defaults for your base model, train, then test the trigger word in fresh prompts.
Result
You have a safetensors LoRA file that, dropped into ComfyUI or a Flux app and triggered by your keyword, draws your specific subject or style in any new scene you prompt.