Skip to content

Image LoRA — the Same Idea, Other Tools

Everything so far has been about text models, but LoRA began in the same research culture as image models, and some of its busiest use anywhere is teaching an image generator a face, a pet, a product, or a drawing style. This chapter is a survey, labelled plainly: this guide's lab trained a text adapter only, and nothing in this chapter was run. What transfers, what changes, and what to be careful about — that much can be said honestly from the documentation.

What transfers

The mechanism is identical. The image model's weights stay frozen; a small adapter learns the change; the adapter file is saved separately and applied at generation time, with a strength you can dial up or down per picture — image tools expose that dial directly, so one base model can wear the adapter lightly or heavily. Rank and alpha mean the same things. The lesson of chapter 3 transfers hardest of all: the model learns the dataset you actually gave it, captions included.

What changes

The dataset is pictures plus captions. Typically 10 to 30 images of one subject for a face or object, more for a style, each with a text caption saying what the picture shows — because the model learns the link between words and image. One word in the captions is special: a rare trigger word you invent, present in every caption, so that after training the subject answers to that word and not to ordinary descriptions.

The tooling is different. The working tool in this space is kohya_ss (and its training scripts, sd-scripts): a trainer built for image models, with settings for image size, caption handling, and the repeats-per-image that play the role epochs play here. Generation then happens wherever you already generate — the adapter is loaded alongside the base image model, much as chapter 7's adapter loads beside its base.

The risks are sharper. A text model trained on a kettle's manners can misstate a capacity. An image model trained on a person's face can make pictures of that person, which raises chapter 1's rule from a copyright question to a consent question. Train on your own face, your own drawings, your own products, or material you have clear rights and permission for. Faces of other people — celebrities, colleagues, anyone — without their explicit consent are outside the rule, however good the dataset would be.

If you go there

Start from the documentation of the trainer, keep the first subject something you own outright and can photograph from every angle, and judge the result the way chapter 8 judges: on prompts the training set never contained, with the base model's attempt beside it. The discipline is the discipline, whatever the medium.