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

Podcasts
Are humanoid robots all hype?Are humanoid robots all hype?
Podcast
Podcasts

AI is making them better — but they’re not going to be doing your chores anytime soon.

By Avishay Artsy and Sean Rameswaram
Future Perfect
The old tech that could help stop the next airborne pandemicThe old tech that could help stop the next airborne pandemic
Future Perfect

Glycol vapors, explained.

By Shayna Korol
Future Perfect
Elon Musk could lose his case against OpenAI — and still get what he wantsElon Musk could lose his case against OpenAI — and still get what he wants
Future Perfect

It’s not about who wins. It’s about the dirty laundry you air along the way.

By Sara Herschander
Life
Why banning kids from AI isn’t the answerWhy banning kids from AI isn’t the answer
Life

What kids really need in the age of artificial intelligence.

By Anna North
Culture
Anthropic owes authors $1.5B for pirating work — but the claims process is a Kafkaesque messAnthropic owes authors $1.5B for pirating work — but the claims process is a Kafkaesque mess
Culture

“Your AI monster ate all our work. Now you’re trying to pay us off with this piece of garbage that doesn’t work.”

By Constance Grady
Future Perfect
Some deaf children are hearing again because of a new gene therapySome deaf children are hearing again because of a new gene therapy
Future Perfect

A medical field that almost died is quietly fixing one disease at a time.

By Bryan Walsh