Skip to main content

The context you need, when you need it

When news breaks, you need to understand what actually matters — and what to do about it. At Vox, our mission to help you make sense of the world has never been more vital. But we can’t do it on our own.

We rely on readers like you to fund our journalism. Will you support our work and become a Vox Member today?

Join now

This bizarre image-translation tool turns drawings into photographs

Or at least it tries to.

A new machine learning-based image generator, called the Image-to-Image Demo, is getting attention for the bizarre creations it produces.

The interactive image-translation demo uses inputted outlines, or “edges,” to produce a complete photographic image, based on a body of images on which the machine learning algorithm used has been trained.

Sometimes this works out as you would expect. If you draw an outline of a shoe into a version of the tool that’s been trained on shoe images, you’ll likely get what looks like a shoe.

But input an outline of a cat in the cat-image generator, and you might notice the head and eyes ending up somewhere unexpected.

You can also erase the lines pre-supplied in the online demo and draw your own. You can, for example, draw a triangle and fill it with a blend of cat imagery.

“Sometimes the lines you draw are going to be really different from what it has seen before,” Mountain View-based engineer Christopher Hesse, who created the demo, told Recode. “You get some pretty bizarre results.”

Hesse created the tool to practice his skills in machine learning, a discipline he is studying in his spare time. The browser tool is based on an algorithm Hesse credited to UC Berkeley computer science postdoctoral student Phillip Isola. (Isola has co-authored a paper related to the algorithm. He declined to comment for this story, saying that the paper was still under review.)

According to Hesse, the algorithm was originally implemented in Torch, a computing framework that supports machine learning algorithms. Hesse ported it over to Google’s open-source machine learning framework, Tensorflow, which he is trying to learn. After translating the algorithm over to Tensorflow, he built the browser demo.

Hesse has trained the software on image databases of building facades, shoes, handbags and, of course, cats. He has two kinds of images from each data set — complete images and extracted outlines of those images.

But, really, it’s all about the crazy cats that it creates.

Hesse explains why the cat images stand out as particularly weird: “Some of the pictures look especially creepy, I think because it’s easier to notice when an animal looks wrong, especially around the eyes. The auto-detected edges are not very good and in many cases didn’t detect the cat’s eyes, making it a bit worse for training the image translation model.”


This article originally appeared on Recode.net.

More in Technology

Technology
The case for AI realismThe case for AI realism
Technology

AI isn’t going to be the end of the world — no matter what this documentary sometimes argues.

By Shayna Korol
Politics
OpenAI’s oddly socialist, wildly hypocritical new economic agendaOpenAI’s oddly socialist, wildly hypocritical new economic agenda
Politics

The AI company released a set of highly progressive policy ideas. There’s just one small problem.

By Eric Levitz
Future Perfect
Human bodies aren’t ready to travel to Mars. Space medicine can help.Human bodies aren’t ready to travel to Mars. Space medicine can help.
Future Perfect

Protecting astronauts in space — and maybe even Mars — will help transform health on Earth.

By Shayna Korol
Podcasts
The importance of space toilets, explainedThe importance of space toilets, explained
Podcast
Podcasts

Houston, we have a plumbing problem.

By Peter Balonon-Rosen and Sean Rameswaram
Technology
What happened when they installed ChatGPT on a nuclear supercomputerWhat happened when they installed ChatGPT on a nuclear supercomputer
Technology

How they’re using AI at the lab that created the atom bomb.

By Joshua Keating
Future Perfect
Humanity’s return to the moon is a deeply religious missionHumanity’s return to the moon is a deeply religious mission
Future Perfect

Space barons like Jeff Bezos and Elon Musk don’t seem religious. But their quest to colonize outer space is.

By Sigal Samuel