Generative Images · 5 Interactives

Steal the Brush, Keep the Scene

Style transfer rests on one radical claim: every image can be split into WHAT it shows (content) and HOW it's drawn (style) — and you can swap in a new HOW without losing the WHAT. Below, one little scene gets repainted live by four parametric "artists". You'll find the sweet spot, then push past it and watch the whole idea fall apart in three different ways.

What vs how Two losses Overdrive Content leakage What style misses
EP 01

Every image is two images — the WHAT and the HOW

Pick a content (a scene: shapes and their layout) and a style (a way of putting paint down: palette, stroke, rhythm). The machine renders content A in style B, live. Notice what survives every swap — the house is still a house, the face still a face — and what changes completely: color, texture, mark-making.

content: style:

These "styles" are honest parametric renderers (palette + stroke shape + jitter), not a trained network — but the separation they demonstrate is exactly what neural style transfer extracts from real paintings.

The big idea: a convnet sees content as "which features are where" and style as "which textures co-occur" (Gram matrices). Because those live in different statistics, you can hold one fixed and swap the other — that single insight launched every photo-to-painting filter you've ever used.
EP 02

The tug-of-war — two losses fighting over one canvas

Real style transfer is an optimization: minimize content loss (how far the structure drifted from the photo) plus style loss (how far the texture is from the painting). They pull in opposite directions. Your slider is the weight between them — the meters below are computed live from the actual pixels on this canvas.

Why it matters: content loss here is measured on edge maps, style loss on color statistics — a miniature of Gatys et al.'s feature-vs-Gram losses. Every style-transfer app hides this exact slider; when a filter looks "too weak" or "melted", someone chose the wrong point on this trade-off.
EP 03

Turn it up until the painting eats the photo

The slider now goes past 100%. Beyond that point the strokes stop following the scene and start replacing it: jitter scatters marks off their objects, the base layer fades, and structure dissolves. The recognizability score is a live edge-correlation between the output and the original — watch it collapse.

The failure everyone hits: crank the style weight and you don't get "more artistic" — you get texture soup. Real systems fail identically: too much style loss and the network happily paints beautiful brushstrokes of nothing. Content preservation is the constraint, not the default.
EP 04

Content leakage — when the style brings its own furniture

A style image isn't pure style — it contains objects too. A transfer that matches statistics only borrows the palette and stroke. A naive transfer that matches patches starts copying the style image's actual things: push the weight up in patch mode and the Night Swirls' moon and cypress tree invade your hillside.

Real-world echo: apply a Starry Night style and mysterious swirl-stars appear in your sky; use a portrait as style and eyes bleed into walls. That's leakage — the method matched structures, not just texture. Gram-matrix losses average structure away on purpose; patch-based and AdaIN-ish methods trade that safety for sharper texture and pay in leaked objects.
EP 05

The same brush can't paint the same feeling

One style, two totally different scenes. The style fingerprint gap below (distance between the two halves' color/texture statistics) is tiny — by the numbers, these are "the same style". The pixel difference is huge. So what did "style" actually capture? Local statistics. What did it miss? Composition, subject, mood — everything you'd call the artist's vision.

The honest limit: a Van Gogh filter gives you Van Gogh's paint, never his choice of what to paint or where to put the moon. Style transfer factorizes images into layout × texture; whatever lives in neither factor — narrative, composition, intent — silently falls through the crack. That's also why it generalizes so well: one style works on any photo, precisely because it learned nothing about any particular photo.
Keep playing
Generative Models
Super-Resolution Hallucination
Upscalers don't recover detail — they invent it
Generative Models
Seeds & Determinism
Why the same prompt gives different images