How We Made Ambience Imaging Deterministic
- Extendedbrain.ai Blog

- Jul 12
- 2 min read
Every social narrative we generate lives or dies on one thing: does the child recognize what they're looking at? A "doctor's office" illustration that looks nothing like their doctor's office doesn't calm anxiety — it adds a new unknown to an already unfamiliar day. That's the gap Ambience Imaging was built to close, and it's also what made building it hard.
The problem: personalization at scale breaks consistency
We generate thousands of images for a single location — different ages, genders, hair textures, skin tones, and scenarios — and every one of them needs to feel like the same place. A haircut narrative for a five-year-old and one for a nine-year-old should both unmistakably be Sharkey's: same chairs, same color palette, same layout, same lighting. Miss that, and the whole premise of "rehearsing the real experience" falls apart.
Generative image models don't do this by default. Ask for the same prompt twice and you'll get two different rooms. Multiply that randomness across thousands of demographic and situational variations, and you end up with thousands of different salons instead of one recognizable one — exactly the generic-stock-photo problem we were trying to solve.

The fix: separate what should vary from what shouldn't
The core idea was to stop treating "location" and "child" as one prompt and start treating them as two separate, independently controlled inputs to the same generation pipeline.
For each partner location, we build a fixed visual reference — the elements that define its ambience: wall colors, furniture, signage, lighting, layout. That reference gets locked in and reused as a conditioning input for every image generated for that location, rather than being re-described (and re-imagined) from scratch each time.
On top of that fixed backdrop, our multi-parameter algorithm varies only the things that should change — a few predefined parameters — while holding everything about the environment constant. Locking the seed and reference conditioning for the location, and letting only the demographic and situational parameters move, is what turns "generate an image of a kid at a salon" into "generate this specific child at this specific Sharkey's."

Why determinism, not just realism
We could have optimized purely for photorealism and called it done. But realism without consistency doesn't help a child who's about to walk into a specific, familiar room. Determinism is what turns preparation into recognition: the same walls, the same chairs, the same feel, every single time a story is generated for that location — whether it's story #1 or story #10,000.
That's also what makes Ambience Imaging viable for partners. A clinic or salon needs their co-branded narratives to actually look like their space, consistently, not as a one-off lucky generation. Determinism is what lets us guarantee that.
The result
Today, this pipeline powers over 10,000 pre-generated illustrations for our Sharkey's Cuts for Kids partnership alone — each one unmistakably "Sharkey's," while still reflecting the individual child in the story. The technical challenge was never just generating good images. It was generating the same place, thousands of times over, so kids walk in already knowing what they'll see.
Check this out at https://sharkeys.extendedbrain.ai



