Somebody sends you a photo and asks for "the same thing, but in a different style". You run it through a converter, and the result is almost right except for one patch of color that has clearly wandered off and taken the mood with it. The wall behind the subject is now a shade of green that clashes with everything, or the fabric that was dusty rose has come back as a flat fuchsia. It is a frustratingly common outcome, and it is almost never random.
I hit this repeatedly while restyling interior and product shots on imagetoimage.cn, and after enough of these I started noting which color would drift and why. The pattern is consistent enough to plan around, so here is what is going on and what to do before you re-run rather than after.
Where the color in your photo actually lives
A pixel's color is not one number you can move around. It is roughly three things layered together. There is the hue of the object itself, the light falling on it, and whatever color cast the camera or the scene imposed. A white wall in a room lit by afternoon sun through a window is not white in the file; it is warm amber, leaning orange. Your brain corrects for it and you see white. The conversion model mostly does not, especially when you give it a style from a completely different lighting situation.
That is the first drift source and the most common one. When a source photo carries a strong global cast, the style pass tends to push the whole image in one direction, and the cast becomes a color the model treats as an intentional feature. It then exaggerates it rather than neutralizing it.
Drift source two: the model is matching a palette, not your objects
Style transfer models learn statistics. If they resize the source and compare its distribution of colors against the reference, they will push your image toward that distribution no matter what the objects in it are. Give it a reference with a lot of teal and it will find somewhere in your photo to put teal. Walls, shadows, and neutral surfaces absorb that pressure first because they are large and relatively unsaturated, which is why your white wall is always the first thing to go wrong and your subject is usually fine.
This explains the classic symptom: subject intact, background ruined. The model protected the high-detail area it could identify and dumped the shift into the low-detail area. That is less a bug than a consequence of how palette matching works.
Drift source three: small saturated regions get averaged away
If your photo contains a small but important color element, a red belt, a blue sign, a specific brand color on packaging, these are the first casualties. A region that occupies 2% of the frame gets very little weight in a global color match. It gets pulled toward whatever is dominant, and it comes back dusty or shifted or just wrong.
This one hurts most on product work, where the color is the product. A restyled shot of a branded box is worthless if the brand color has moved three degrees toward orange.
Fix the cast before you convert, not after
The cheapest fix for the first drift source: neutralize the source before the style pass. Run a white balance correction so that the neutrals in the image read as neutrals, then convert. I resisted this for a while because it felt like adding a step, but the difference is stark. A warm-cast interior photo converted directly comes back with the warmth baked in as a stylistic choice. The same photo, white-balanced first, converts with the cast gone and the style applied to actual object colors.
If you do not have a white balance tool handy, the trick is to find something in the frame that should be neutral, a ceiling, a grey appliance, a paved surface, and pull the color toward neutral until it looks right. Anything close is better than nothing.
Protect the elements you cannot afford to lose
For drift source three, you have two options and both work. The first is to convert with a mask or regional setting if your tool supports it, so the branded region is excluded from the style pass. The second, which needs no special features, is to composite: convert the full image, then paste the original branded area back over the converted version with a soft edge. It takes a minute in any editor and it is completely reliable.
A third approach: slightly boost saturation of the critical region in the source before converting. A small increase gives it more weight in the color distribution, so the model treats it as important rather than incidental. Do not overdo it or you get a glowing belt, but a modest bump does influence the result.
Choose a reference that shares lighting direction, not just palette
Most people pick a style reference because they like the colors. That is the wrong first filter. Pick one where the light comes from roughly the same direction as your source. If your source is lit from behind and you hand the model a reference lit from the front, the model has to reconcile two contradictory shading patterns and the result is usually muddy color in exactly the transition zones where light and shadow meet.
Palette matters, but it comes second. Same direction first, similar contrast second, palette third. A reference with slightly off colors but matching light direction will produce a cleaner conversion than one with perfect colors and opposite lighting every single time.
Run the strength slider conservatively the first time
If you are converting a photo where the colors matter more than the style effect, start lower than you think. A moderate style strength keeps more of the original chroma placement, which keeps your palette in place. High strength means the model rewrites the color relationships from scratch, and that is exactly where background greens and fuchsia fabrics come from.
That is not a permanent compromise. Get a clean result at moderate strength, then nudge upward one step at a time on that image until just before drift starts. When the wall begins to shift hue you have found the ceiling, usually higher than you would guess from starting at maximum.
A short checklist to run before hitting convert
- Is there an obvious color cast? Neutralize it first.
- Is anything in the frame a color you cannot change? Mask, composite, or saturate it slightly.
- Does the reference light come from the same direction as the source light?
- Is style strength set moderately, with room to increase?
- Is the most important color element larger than a couple of percent of the frame? If not, expect to intervene.
Five questions, two minutes, and they prevent the failure where you spend twenty minutes re-rolling the converter hoping for luck. Color almost never drifts by accident; it drifts because something in the input told it to.
If you want to try this end to end, imagetoimage.cn handles the conversion and the strength control well enough to let you test the moderate-first approach properly.
