Neural Style Transfer

Six photos, eight paintings, forty-eight results.

Each square is the photo on its left, repainted by a neural network to look like the painting above it. Open any of them, or add an image and watch a new line fill in.

Your images stay on this device. The network runs in your browser.

Photos by row, paintings by column. Each cell opens the photo repainted in that style.

Two ways to repaint a kitten

This project began as a notebook following A Neural Algorithm of Artistic Style (Gatys, Ecker and Bethge, 2015). It starts from the photo and adjusts the pixels over 1,000 steps, until the image-recognition network VGG-19 still sees a kitten but measures the same textures as the painting. Every new pair starts over.

The table uses a later method that the notebook also tries: Magenta’s arbitrary stylization. One network reduces any painting to 100 numbers, and a second repaints the photo from those numbers in a single pass. That is what makes it quick enough to run on your own device.

A ginger kitten on a white background
The photo
Abstract swirl of orange, teal and magenta feathers on black
The painting
The kitten with feathery, iridescent fur
The notebook, after 1,000 steps
The kitten with dark, ember-coloured fur
The table, after one pass

100%
Long side, in pixels
Save image