Beyond Deep Fakes: Transforming Video Content Into Another Video's Style, Automatically
Applications include movie production, self-driving cars, robot training.
By Byron SpiceMedia Inquiries
- School of Computer Science
Carnegie Mellon University researchers have created a method that automatically transforms the content of one video into the style of another. For instance, Barack Obama’s style can be transformed into Donald Trump.
Researchers at Carnegie Mellon University have devised a way to automatically transform the content of one video into the style of another, making it possible to transfer the facial expressions of comedian John Oliver to those of a cartoon character, or to make a daffodil bloom in much the same way as a hibiscus would.
Because the data-driven method does not require human intervention, it can rapidly transform large amounts of video, making it a boon to movie production, as well as to the conversion of black-and-white films to color and to the creation of content for virtual reality experiences.
"I think there are a lot of stories to be told," said Aayush Bansal, a Ph.D. student in CMU's Robotics Institute. Film production was his primary motivation in helping devise the method, he explained, enabling movies to be produced faster and cheaper. "It's a tool for the artist that gives them an initial model that they can then improve," he added.
The method has many other potential uses, such as helping autonomous vehicles learn how to drive safely at night.
It also has the potential to be used for so-called "deep fakes," videos in which a person's image is inserted without permission, making it appear that the person has done or said things that are out of character, Bansal acknowledged.
"It was an eye opener to all of us in the field that such fakes would be created and have such an impact," he said. "Finding ways to detect them will be important moving forward."
The researchers demonstrated that video of a blooming flower can be used to manipulate the image of other types of flowers.
Transferring content from one video to the style of another relies on artificial intelligence. In particular, a class of algorithms called generative adversarial networks, or GANs, have made it easier for computers to understand how to apply the style of one image to another, particularly when they have not been carefully matched.
In a GAN, two models are created — a discriminator that learns to detect what is consistent with the style of one image or video, the other a generator that learns how to generate images or videos to match a certain style. When the two work competitively — the generator trying to trick the discriminator and the discriminator scoring the effectiveness of the generator — the system eventually learns how content can be transformed into a certain style.
A variant, called cycle-GAN, completes the loop, much like translating English speech into Spanish and then the Spanish back into English and then evaluating whether the twice-translated speech still makes sense. Using cycle-GAN to analyze the spatial characteristics of images has proven effective in transforming one image into the style of another.
That spatial method still leaves something to be desired for video, with unwanted artifacts and imperfections cropping up in the full cycle of translations. So the CMU and Facebook researchers developed a technique, called Recycle-GAN, that incorporates not only spatial, but temporal information. This additional information, accounting for changes over time, further constrain the process and thus produces better results.
They showed that Recycle-GAN can be used to transform video of Oliver into what appears to be fellow comedian Stephen Colbert and back into Oliver. Or video of John Oliver's face can be transformed into Stephen Colbert or a cartoon character. Recycle-GAN not only enables facial expressions to be copied, but also the movements and cadence of the performance.
The effects aren't limited to faces, or even bodies. The researchers demonstrated that video of a blooming flower can be used to manipulate the image of other types of flowers. Or clouds that are crossing the sky rapidly on a windy day can be slowed to give the appearance of calmer weather.
Such effects might be useful in developing self-driving cars that can navigate at night or in bad weather, Bansal said. Obtaining video of night scenes or stormy weather in which objects can be identified and labeled can be difficult, he explained. Recycle-GAN, on the other hand, can transform an easily obtained and labeled daytime scenes into nighttime or stormy scenes, providing images that can be used to train cars to operate in those conditions.
More information and videos are available online at https://www.cs.cmu.edu/~aayushb/Recycle-GAN/.