Ruined a Photo By Blinking? Facebook Can Fix It With AI
Next time you blink in an otherwise flawless photo, don't be so quick to hit the "delete" button on your phone. As The Verge reports, Facebook is testing a new feature that uses artificial intelligence to make closed eyes look naturally open.
Facebook engineers Brian Dolhansky and Cristian Canton Ferrer described the technology behind the AI in a paper published June 18. They used a type of machine learning called generative adversarial network or GAN. It works by looking at a database of pictures and using that information to generate new imagery where there wasn't any before.
This type of AI has been used to design clothing and video game levels in the past. To get it to work with faces, Facebook engineers showed the system photos taken of people when their eyes were open. After "learning" the subject's eye shape, size, and color, the AI used that data to superimpose a new set of eyes over the blinking lids. The feature still has some trouble working with glasses, long bangs, and pictures taken at an angle, but when it does what it's supposed to, it's hard to tell the photo was ever retouched.
Facebook isn't the first company to use AI to salvage photographs with closed eyes. In 2017, Adobe added an "Open Closed Eyes" feature to Photoshop Elements that also uses AI to generate a pair of eyes that match those of the blinking subject. For it to work, users first have to show the system several photos of the subject with their eyes open.
Facebook, which already holds a database of pictures of many of its users, seems like a perfect fit for this type of technology. The social media site is still testing it out, but based on the success of early experiments, they may consider making it available to users in the not-too-distant future. And because Facebook owns Instagram, it's possible that the eye-opening feature will eventually be applied to Instagram posts and Stories as well.
[h/t The Verge]