A.I. Mirror Turns Your Reflection Into A Picasso Painting

Electronic Cubism

Stand in front of the “Cubist Mirror,” and you’ll see your face looking back at you. But it’s a version of your face as Picasso might paint it.

The mirror works in real time, generating a refreshed “reflection” faster than once per second. The refresh rate creates a slightly choppy effect, but this machine learning project will get faster and smoother.

Artist and programmer Gene Kogan developed the Cubist Mirror for “alt-AI,” a conference about art and artificial intelligence that took place this past May at the School for Poetic Computation in New York.

Gene Kogan reflects on his Cubist Mirror

A portrait of the art as a young man: Kogan, as “reflected” by his Cubist Mirror.

The equipment consists of an LCD monitor hooked up to a webcam. But the real star of the project is the software that the webcam runs, a real-time version of the so-called “style transfer technique.” Style transfer uses machine learning to understand the style of one image and apply it to another.

Kogan credits the open-source community for making his software possible. He based it on the open-source style transfer work of Yusuke Tomoto, which in turn used information from a previously published research paper.

“A lot of the software in machine-learning circles is open source these days,” Kogan says. “That’s an inspiring thing for me.” Style transfer development has incubated rapidly in this collaborative environment, as the progress of Kogan’s project demonstrates. Earlier this year, the style transfer he was working on took minutes to render. “Not much like a mirror,” he says. Now the rate approaches multiple frames per second.

Cubist Mirror Selfie

Kogan’s Cubist Mirror, on display, allows the observer to reflect on becoming the subject.

If the machine learning mirror got your attention, that is Kogan’s goal, but only to direct it to the little-discussed applications of machine learning that are all around us. “Machine learning is relevant in many domains,” Kogan says. “Art can be an interesting way of starting a conversation about these very powerful technologies that are growing in their prominence every day.” He worries that engineers are not giving enough thought to the built-in biases of these systems.

Kogan’s hope is that promoting machine art, like the Cubist Mirror, will bring about awareness and discussion of real-world impacts. “The more people are literate about what these algorithms can do,” he says, “the more they’ll be concerned with using them in unjust ways.”

Cubist Mirror

Making Cubism both more real and surreal, Kogan’s mirror mesmerizes.