- LoRA
- Product photography
- Ecommerce
- Style LoRA
- Captions
- Flux
- SDXL
Train a Product Photo Style LoRA
How to train a product photo style LoRA that learns your catalog lighting, backdrop and color grade across many SKUs, and when to use a single-product LoRA.
What Is a Product Photo Style LoRA?
Ecommerce teams usually want one of two things from a LoRA. The first is identity: one bottle, sneaker or handbag that must come out with the exact silhouette, logo and colorway every time. The second is a look: the soft gradient backdrop, the key light from the upper left, the gentle contact shadow and the slightly warm grade that make a whole catalog feel like one brand. These are different training problems, and mixing them is the most common reason product LoRAs disappoint.
A product photo style LoRA targets the second problem. It is a style adapter whose subject happens to be photography. The constant across the dataset is the lighting setup, backdrop, camera height, framing and color treatment, while the products themselves change from image to image. Because the products keep changing, the LoRA cannot memorize any single one of them, so the shared photographic treatment is the strongest signal left to learn.
If you need one exact SKU instead, our product LoRA from one photo guide covers angles, labels and captions for identity. The style version is closer to an art style LoRA, except that the style lives in lights and surfaces rather than brushwork.
| Question | Product photo style LoRA | Single-SKU object LoRA |
|---|---|---|
| What it learns | Lighting, backdrop, shadow, framing, color grade | One product's shape, materials, logo and colorway |
| What changes across the dataset | The products (many SKUs and categories) | Angles, backgrounds, lighting, scale |
| What stays constant | The photographic treatment | The product itself |
| Typical use | Give new or AI-generated packshots a consistent catalog look | Generate the same product in new scenes and ads |
| Main failure mode | Learns one product category or one dominant object | Shape drift, wrong label text or color |
| Caption focus | Describe each product and scene; leave the look to the trigger | Trigger for the product; describe view, scene and light |
How Do You Build a Catalog Style Dataset Across Many SKUs?
Start from photos that already share the look you want, ideally from one studio setup or one photographer. Pull images across as many product categories as you can: bottles, shoes, bags, cosmetics jars, electronics, food packaging. The wider the range of shapes, materials and colors, the less the LoRA can attach the look to one object type.
Balance matters more than raw size. If 80 percent of the images are white sneakers, the LoRA will push sneaker shapes and white materials into everything. A detailed community answer to a Hugging Face forum question about a roughly 3,000-image ecommerce style LoRA gives the same advice for backdrops: keep plain, lifestyle, nature and still-life backgrounds in similar proportions so one background type does not dominate the color temperature. Apply the same idea to categories and product colors.
Run the usual quality pass before training. Product photos have their own traps, such as reflections that show the photographer, retouching halos around cut-outs and compression on marketplace exports. The pre-training LoRA dataset checklist lists what to delete, and the aspect ratio bucketing guide explains how to keep square, portrait and landscape crops without stretching them.
- Keep constant: backdrop type or gradient, key light direction, shadow softness, camera height, color grade.
- Vary on purpose: product category, shape, size in frame, material (glass, fabric, metal, matte plastic), product color.
- Avoid: the same hero product repeated many times, visible brand logos you do not own, watermarks and marketplace badges.
- Remove: cut-outs with halos, heavily compressed exports, and shots taken under a different lighting setup.
One look per LoRA
How Should You Caption a Style Set So the Products Stay Promptable?
For a style LoRA, caption what changes and leave out what you want learned. Describe the product, its color and material, and the object arrangement in every caption. Do not describe the lighting setup, backdrop gradient or color grade in detail, because those are the traits you want the adapter to absorb into its trigger. If you write soft gradient backdrop in every caption, the model learns to associate the look with those words instead of with the LoRA.
A simple pattern works well: a rare style trigger, then a literal description of the product. For example: pkshot style, a matte black ceramic coffee mug on a pedestal, three-quarter view. The next file might read: pkshot style, a pair of white canvas sneakers, side view. The trigger lets you switch the look on and off at inference, and the product description keeps the object controllable so you can ask for any product later. The LoRA captioning guide covers the general rules behind this split.
Auto-captioners help with large catalogs, but they often describe lighting and backgrounds by default. Strip those phrases out, or prompt the captioner to describe only the object, its material and the camera angle. Then read a sample of captions by hand before training.
How Many Images and How Much Variety Does a Catalog Style LoRA Need?
There is no official minimum. Style LoRAs generally need more variety in subjects than identity LoRAs, because the only thing that should repeat is the look. In practice, the number of distinct products and categories matters more than the total file count: forty images of forty different products usually teach a cleaner style than two hundred images of five products. For general guidance on counts by LoRA type, see how many images you need to train a LoRA.
Very large catalogs do not need to be used in full. In that same community answer, the suggested approach for a 3,000-image product-photo set was to start from a curated, balanced subset, train, check sample images, and add more data only if the style underfits. Treat those numbers as one practitioner's starting point, not a rule, and judge results by fixed-seed samples rather than by the training loss.
| Slice | What to include | Why it matters |
|---|---|---|
| Product categories | Several categories with similar counts each | Stops one shape from leaking into every output |
| Materials | Glass, metal, fabric, matte and glossy plastic, paper | Teaches how the light behaves on different surfaces |
| Product colors | Light, dark and saturated products | Prevents the grade from being learned as one product color |
| Framing | Close, medium and full product shots | Avoids locking every object to the same size in frame |
| Aspect ratios | Square plus the portrait or landscape crops you publish | Matches the formats you will generate |
| Backdrops | Only the backdrop types that belong to this look | Keeps the style focused; split other looks into another LoRA |
How Do You Use the Style LoRA on New Products?
Text-to-image with the style trigger is the quickest test: prompt a product that was not in the dataset and check that the backdrop, light and grade carry over. For real products whose shape and label must stay exact, combine the style LoRA with a separate object LoRA of that SKU, or apply the style through image-to-image or inpainting on a real packshot so the product pixels come from the photo.
Stacking adapters needs a strength sweep. Start the style LoRA lower than the object LoRA, run a fixed seed across a few strength values and keep the pair that preserves both the product and the look. Our guide to LoRA strength and stacking in ComfyUI and Forge walks through that sweep. Always compare generated labels, logos and colors against the real product before an image goes on a product page, because generated text and fine print can be wrong even when the overall look is right.
- 01
Collect one look
Gather photos from one lighting setup across many product categories, materials and colors. - 02
Balance and clean
Even out categories, backdrops and product colors, then remove halos, reflections, logos and compressed exports. - 03
Caption the products
Use a rare style trigger plus a literal product description; leave the lighting and backdrop undescribed. - 04
Train and sample
Train, save several checkpoints and test each on products that were not in the dataset with a fixed seed. - 05
Apply and verify
Stack with a SKU LoRA or use image-to-image on real packshots, then check labels and colors against the real product.
When Should You Train a Single-SKU Object LoRA Instead?
Train an object LoRA when the product itself is the deliverable: a hero SKU in many new scenes, a launch campaign, or ads where the silhouette, logo and colorway must not drift. Train a style LoRA when the deliverable is consistency across a catalog, such as making supplier photos, older shoots and new AI-generated scenes look like one set. Many teams end up with both: one style adapter for the catalog and one object adapter per key product.
Wearables sit in between. If the goal is a garment on different models, the clothing and outfit LoRA guide is the better fit. When your style set is ready, you can prepare captions and export a trainer-ready folder from the LoRA Dataset dashboard.
Frequently asked questions
What is the difference between a product LoRA and a product photo style LoRA?
A product LoRA learns one item: its shape, materials, logo and colorway. A product photo style LoRA learns a photographic look, such as backdrop, lighting, shadow and color grade, from many different products shot the same way, so it can apply that look to products it has never seen.
Should I describe the lighting and background in style LoRA captions?
Usually not. Describe the product, its color, material and view, and leave the lighting setup and backdrop out of the captions. Traits that appear in every image but are never described tend to be absorbed by the trigger, which is what you want for a style LoRA.
Can one LoRA keep my product exact and apply my catalog style?
It is hard to get both from one adapter. A more reliable setup is a style LoRA for the look plus a separate object LoRA for the product, stacked at tested strengths, or the style LoRA applied with image-to-image on a real product photo.
How many images does a product photo style LoRA need?
There is no fixed number. Variety matters more than count: many different products and categories under one consistent setup teach the style better than many photos of a few products. Start with a curated, balanced set and add images only if the style underfits.
Sources and further reading
- Hugging Face Forums: Diffusion model LoRA training on large datasets (ecommerce product photo style LoRA thread)
- John6666 community answer on Flux LoRA training with a large product photo dataset (Hugging Face)
- Hugging Face Diffusers: LoRA training documentation
- Hugging Face Diffusers: DreamBooth training documentation
- kohya-ss/sd-scripts on GitHub
- ostris/ai-toolkit on GitHub
