- Product LoRA
- Ecommerce
- Colorways
- Dataset prep
- Kohya
- AI-Toolkit
- Concept bleeding
Multi-SKU Colorway Product LoRAs
How to train a product line with several colorways or SKUs without color bleed: one LoRA per SKU vs multi-trigger sets, color captions and balanced repeats.
Should Each Colorway Get Its Own LoRA?
A colorway line is one shape in several finishes: the same sneaker in red, black, white and teal, or the same bottle in four label colors. The model has to learn the shared geometry once and keep each finish separate. Our single-product LoRA guide covers one SKU; this guide covers what changes when a catalog has many variants of that SKU.
There are two workable designs. One LoRA per colorway is the most reliable: each file only ever sees one color, so there is nothing to bleed, and you load the right file per render. One multi-trigger LoRA is lighter to manage, but it only works when each colorway has its own token, its own captions and enough balanced images for the model to tell them apart.
A third design, one LoRA for the shape with color left to the prompt, is the right call when the colors are plain and easy to prompt, such as solid black or white. It breaks down for named brand colors, gradients, patterns and two-tone finishes, which a base model will not reproduce from a color word alone.
| Design | Best when | Color bleed risk | Files to manage |
|---|---|---|---|
| One LoRA per colorway | Few colorways, exact brand colors matter | Lowest: each LoRA sees one color | One per SKU |
| One multi-trigger LoRA | Many colorways, shared shape, enough images per color | Medium: depends on captions and balance | One |
| Shape LoRA, color by prompt | Plain solid colors that base models already render well | Not applicable, but custom colors drift | One |
| One uncaptioned folder of all colors | Never recommended | Highest: colors average into each other | One |
How Do You Caption Color and SKU So Colors Do Not Bleed?
Color bleed happens when the model cannot tell which pixels belong to which label. If every image is captioned only with the product token, the LoRA learns an average product, and renders come out in a muddy blend or default to whichever color had the most images.
Give each colorway its own trigger phrase that combines the product token with a color token, for example zxsneaker red and zxsneaker black, and put it at the start of every caption for that colorway. Then describe the scene, angle and background in plain words so they stay promptable. The general caption rules in our captioning guide still apply: describe what should vary, and let the trigger carry what should stay fixed.
In kohya sd-scripts, shuffle_caption reorders tags each step, so set keep_tokens to cover the product and color tokens and keep them at the front. Its dataset config also documents that class_tokens is only used for images without a caption file, so do not rely on it to name colors: every image in a colorway set should have a caption.
| Image | Weak caption | Strong caption |
|---|---|---|
| Red, side view | zxsneaker | zxsneaker red, side view, white studio background, soft shadow |
| Black, top view | zxsneaker | zxsneaker black, top-down view, light gray background |
| Red, on foot | a shoe on a person | zxsneaker red, worn by a person walking, city sidewalk, daylight |
| Black, close-up | black shoe | zxsneaker black, close-up of the heel and outsole, studio light |
Turn off color augmentation
How Do You Balance Repeats Across a Product Line?
Catalogs are rarely balanced. The hero colorway may have forty photos and a seasonal color only eight. Trained as one pool, the big set dominates and the small colorway inherits its look. Balancing means each colorway contributes a similar number of image views per epoch.
kohya sd-scripts lets you define one subset per colorway inside a dataset and set num_repeats per subset, so an 8-image colorway at 5 repeats and a 40-image colorway at 1 repeat both contribute 40 views per epoch. Ostris ai-toolkit takes a list of dataset folders in its config, so the same idea works by giving each colorway its own folder. Our steps and repeats calculator guide shows how repeats change total steps.
Repeats cannot fix a colorway with too few angles. If a color only has front views, the LoRA will not know its back or sole, and it may borrow those from another color. Shoot or source the same angle list for every colorway first, then balance with repeats.
- 01
Count images per colorway
List each colorway folder and its image count before training. - 02
Pick a target view count
Use the largest colorway count as the target number of views per epoch. - 03
Set repeats per subset
Divide the target by each colorway count and round to the nearest whole repeat. - 04
Check the angle list
Confirm every colorway has front, side, back, top and detail shots before relying on repeats.
What Shots Must Stay Consistent Across Colorways?
The shape is shared, so the shot list should be shared too. When every colorway is photographed at the same angles, lighting and distance, the only thing that differs between subsets is color, which is exactly what you want the color token to absorb.
Vary backgrounds and context inside each colorway, not between them. If all red photos are on white and all black photos are outdoors, the model learns that red means studio, and your black renders will refuse a studio background. Mix contexts evenly across every color. For a broader look applied to many unrelated products, use a style adapter instead, as described in our product photo style LoRA guide.
| Shot | Per colorway | Why it matters |
|---|---|---|
| Front and back | 2 to 3 each | Locks the silhouette and any logo placement |
| Left and right side | 2 to 3 each | Teaches the profile shape shared by all colors |
| Top-down | 1 to 2 | Shows lacing, lids or openings |
| Detail close-ups | 2 to 4 | Material, stitching and exact color under neutral light |
| In context or on model | 3 to 6 | Keeps the product usable in lifestyle scenes |
| Neutral studio, gray card | 1 to 2 | Gives an unshifted color reference |
How Is This Different From Training Two Characters in One LoRA?
The mechanics are the same as a multi-character LoRA: separate tokens, separate subsets and balanced repeats, as covered in our multi-character concept bleeding guide. The difference is how similar the concepts are. Two characters differ in face, body and outfit; two colorways are pixel-for-pixel the same shape except for color, so the color token carries almost all of the difference.
That is why colorway sets are less forgiving. Never caption with the product token alone, keep every color token distinct and short, and test with prompts that ask for each colorway in the same scene. If a test render of the black colorway shows red accents, add images or repeats to the black subset, or split that color into its own LoRA. For garments worn by different people, the clothing LoRA guide is the better fit.
How Do You Test a Multi-Colorway LoRA Before Shipping Renders?
Run a fixed test grid: the same seed, scene and angle, one row per colorway trigger, at two or three LoRA strengths. Every row should show the same shape and a clean, correct color. Strength and stacking behave as described in our LoRA strength and stacking guide.
Compare each render against the neutral studio reference shot for that colorway rather than judging color by eye on a dark monitor. Brand teams usually need the color to match a reference, so keep the gray card shots from the dataset as your check images.
- Same seed and prompt for every colorway row.
- Check logo position and size on every color, not only the hero color.
- Look for accents from one color appearing in another, such as red laces on the black colorway.
- Test one scene the dataset never showed to confirm the product still generalizes.
Frequently asked questions
Can one LoRA learn several product colors?
Yes, if each colorway has its own trigger phrase, its own captions and a balanced number of images or repeats. If colors still bleed after that, train one LoRA per colorway.
How many images do I need per colorway?
There is no official number. Aim for the same angle list in every colorway, front, back, sides, top and details, then use repeats to balance small colorways against large ones.
Should I enable color augmentation for a product LoRA?
No for colorway sets. Color or hue augmentation changes the exact colors the LoRA is supposed to learn, which makes colorways blend.
Why does my black colorway come out red?
Usually the red set is larger, the captions do not name the color, or both colors share one trigger. Name each color in every caption, balance repeats, and test each trigger on the same seed.
