homehome Home chatchat Notifications


AI draws amazing caricatures from photos

Is there any job that an AI can't do?

Tibi Puiu
June 27, 2019 @ 10:48 pm

share Share

Credit: Cao et al.

Credit: Cao et al.

Artificial intelligence (AI) can handle not only mundane and repetitive tasks, but can also work very well for some creative endeavors. We’ve seen AIs capable of writing poems, novels, movie scripts, and even classical music. Visual arts are a particularly interesting area to apply AIs, with researchers demonstrating algorithms that create paintings in all sorts of styles and, more recently, caricatures that look remarkably similar to what a human artist would draw.

The caricature algorithms were developed by computer scientists at Microsoft and City University of Hong Kong. The engineers made two separate AI systems that form a type of neural net called a Generative Adversarial Network (GAN). One of the algorithms tries to make a realistic version of an input (i.e. someone’s portrait), while the other compares the output to real-world examples in order to evaluate the work.

For this particular study, one of the GANs was built to analyze and exaggerate certain facial features from uploaded photos. The other GAN added pen strokes and artistic styling common among caricatures. “In this way, a difficult cross-domain translation problem is decoupled into two easier tasks,” the authors wrote, referring to their custom neural networks which they called “CariGANs”.

Schematic of CariGANs.

Interestingly, the algorithms can also work in reverse: converting caricatures into photo-like realistic renditions.

Caricatures to photos. Credit: Cao et al.

Caricatures to photos. Credit: Cao et al.

There are some limitations as to what the CariGANs ca achieve. The geometric exaggeration is more obviously observed in the face shape than other facial features. What’s more, some geometric exaggerations on ears, hairs, wrinkles and such, cannot be covered because the algorithms can only read 33 out of 63 landmarks lying on the face contour. This limitation can be solved by adding more landmarks, the researchers said.

It’s also possible to create video caricatures. The clip below shows a caricature of Donald Trump giving a speech, whose facial features have been exaggerated by the AI frame by frame.

The caricature algorithms will be officially presented at presented at SIGGRAPH Asia 2018, which will be held in Tokyo in December. Meanwhile, the work has been published in the pre-print server Arxiv.

share Share

The Universe’s First “Little Red Dots” May Be a New Kind of Star With a Black Hole Inside

Mysterious red dots may be a peculiar cosmic hybrid between a star and a black hole.

Peacock Feathers Can Turn Into Biological Lasers and Scientists Are Amazed

Peacock tail feathers infused with dye emit laser light under pulsed illumination.

Helsinki went a full year without a traffic death. How did they do it?

Nordic capitals keep showing how we can eliminate traffic fatalities.

Scientists Find Hidden Clues in The Alexander Mosaic. Its 2 Million Tiny Stones Came From All Over the Ancient World

One of the most famous artworks of the ancient world reads almost like a map of the Roman Empire's power.

Ancient bling: Romans May Have Worn a 450-Million-Year-Old Sea Fossil as a Pendant

Before fossils were science, they were symbols of magic, mystery, and power.

This AI Therapy App Told a Suicidal User How to Die While Trying to Mimic Empathy

You really shouldn't use a chatbot for therapy.

This New Coating Repels Oil Like Teflon Without the Nasty PFAs

An ultra-thin coating mimics Teflon’s performance—minus most of its toxicity.

Why You Should Stop Using Scented Candles—For Good

They're seriously not good for you.

People in Thailand were chewing psychoactive nuts 4,000 years ago. It's in their teeth

The teeth Chico, they never lie.

To Fight Invasive Pythons in the Everglades Scientists Turned to Robot Rabbits

Scientists are unleashing robo-rabbits to trick and trap giant invasive snakes