What this is about
An image model is a huge file. Retraining all of it to learn one new look would take enormous time and memory. A LoRA is the cheap way. It is a small extra file, laid on top of the model, that nudges it toward a style or an object. You can add one, adjust its strength, or take it away.
This article explains what a LoRA is, what it needs, and what happened when we trained our own.
Why it matters
Say you want pictures with a consistent look, or a texture family the base model draws badly. A prompt alone only goes so far. A LoRA lets you show the model examples instead of describing them. It is a cheap way to bend one model toward your project.
It also comes with traps. We found three in our own tests, and we describe each below.
How it works
Training a model means showing it examples and nudging its numbers. (Our post What training a model means covers the general idea.) A LoRA freezes the big model and trains only a tiny set of new numbers beside it. The new numbers are the file.
What you need:
- A set of pictures in the look you want.
- A caption for each picture, a short sentence that says what it shows.
- A trainer. ComfyUI version 0.43.0 has one built in, with nodes such as
TrainLoraNode,SaveLoRAandLoraModelLoader. No extra environment needed. - A graphics card with enough memory. Ours has 24 GB.
What it cost us
We trained a style LoRA from 34 of our own texture tiles on RealVisXL, an SDXL model. Settings: rank 8, bf16 numbers, 512 pixel crops. Speed was 0.67 seconds per step, so 60 steps took 40 seconds and 400 steps took 4.5 minutes. That is minutes, not hours.
The file you get is small next to the model. For comparison, the base Krea 2 model we once ran was 26 GB, and the four-step add-on file kept beside it was 419 MB.
What went wrong
| Try | Data | Steps | Result |
|---|---|---|---|
| 1 | 16 tiles, one shared caption | 60 | collapse: uniform maroon grain on every prompt |
| 2 | 34 tiles, one caption each, tiles shrunk to 512 | 90 | almost no effect |
| 3 | same | 400 | uniform fine grain, cracks gone |
| 4 | shorter edge 1024, then random 512 crops | 400 | stones at the right scale, plaster rough brown, color drifts |
The "result" column is how we read the sheets, so treat it as our judgment.
Three rules came out of it:
- One caption per picture. A single shared caption taught the model the average picture of the set.
- Train at the scale you will render. Shrinking whole tiles to 512 pixels gave the wrong scale. Cropping 512 pixel pieces from a bigger picture put the stones at the right size.
- Expect color to drift. Try 4 transferred the look but not the color reliably.
We then tried captions that named lightness and the main color, on 40 tiles, 400 steps, in 418.8 seconds. It did not work well, and we did not keep it. On plaster, cracks grew with strength, and at full strength the tile looked like dry cracked earth. The LoRA had learned the model's habit for seamless sets. On wet asphalt, the result was coarse gravel at every strength, with no wet look, and the plain model was closer. See Textures that repeat without seams for why seamless sets pull toward cracks.
Strength matters
A LoRA has a strength, and the right number depends on the LoRA. A speed-up LoRA for a different model, Flux, wanted 0.125. At 1.0 the job was fastest and every picture was static. The job reported success. The lesson: after loading a LoRA, look at the output, and read the maker's advice on strength. See Eight ways a ComfyUI job succeeds and is wrong.
Do you need one?
Not always. For a four-step Z-Image Turbo, we looked for a ready-made add-on and found none that we could use. Training our own would take about a day of work, so we chose to run the plain model with fewer steps instead. See Steps: why fewer drawing steps can be enough.
Check the license of any LoRA you download.
Words you may meet
- LoRA: a small add-on that adds a style or object to a model.
- Caption: a short sentence saying what a training picture shows.
- Rank: how big the add-on is. Higher rank, bigger file.
- Strength: how strongly the LoRA is applied.
- Crop: a smaller piece cut from a larger picture.
Try it
- Collect 20 pictures in a look you like, with a short caption for each.
- Open ComfyUI 0.43.0 or newer and find the training nodes.
- Train in small steps, 60 first. Render the same prompt with the LoRA off and at three strengths.
- See what a generated look can become inside a real shop: aiazic.com. For pictures made for a blog, see doar.bio.
What we do not claim
Our notes call these runs prototypes. They were judged by reading contact sheets, not by a blind panel. Color control was not solved, and we did not test whether routing the LoRA through our seamless graph would change the crack result.

Comentarii
Niciun comentariu încă.
Conectare pentru a comenta.