Ruined a Photo By Blinking? Facebook Can Fix It With AI

iStock
iStock

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

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]

Looking to Downsize? You Can Buy a 5-Room DIY Cabin on Amazon for Less Than $33,000

Five rooms of one's own.
Five rooms of one's own.
Allwood/Amazon

If you’ve already mastered DIY houses for birds and dogs, maybe it’s time you built one for yourself.

As Simplemost reports, there are a number of house kits that you can order on Amazon, and the Allwood Avalon Cabin Kit is one of the quaintest—and, at $32,990, most affordable—options. The 540-square-foot structure has enough space for a kitchen, a bathroom, a bedroom, and a sitting room—and there’s an additional 218-square-foot loft with the potential to be the coziest reading nook of all time.

You can opt for three larger rooms if you're willing to skip the kitchen and bathroom.Allwood/Amazon

The construction process might not be a great idea for someone who’s never picked up a hammer, but you don’t need an architectural degree to tackle it. Step-by-step instructions and all materials are included, so it’s a little like a high-level IKEA project. According to the Amazon listing, it takes two adults about a week to complete. Since the Nordic wood walls are reinforced with steel rods, the house can withstand winds up to 120 mph, and you can pay an extra $1000 to upgrade from double-glass windows and doors to triple-glass for added fortification.

Sadly, the cool ceiling lamp is not included.Allwood/Amazon

Though everything you need for the shell of the house comes in the kit, you will need to purchase whatever goes inside it: toilet, shower, sink, stove, insulation, and all other furnishings. You can also customize the blueprint to fit your own plans for the space; maybe, for example, you’re going to use the house as a small event venue, and you’d rather have two or three large, airy rooms and no kitchen or bedroom.

Intrigued? Find out more here.

[h/t Simplemost]

This article contains affiliate links to products selected by our editors. Mental Floss may receive a commission for purchases made through these links.

An Illinois School District Has Banned Fully Remote Students From Wearing Pajamas While Learning

The great thing about Zoom is that it's almost impossible for people to tell if you're wearing pajamas.
The great thing about Zoom is that it's almost impossible for people to tell if you're wearing pajamas.
August de Richelieu, Pexels

Having most of your interactions via video chat can be a little exhausting, but it does come with a few perks—like being able to wear your pajama pants without anybody knowing or caring. For students facing remote learning in Illinois’s Springfield School District, however, PJs are against the rules.

WGRZ reports that the dress code for Springfield’s learn-from-home plan includes a ban on pajamas, which a number of parents aren’t too happy about.

“I don’t think they have any right to say what happens in my house,” parent Elizabeth Ballinger told WCIA. “I think they have enough to worry about as opposed to what the kids are wearing. They need to make sure they’re getting educated.”

Aaron Graves, president of the Springfield Education Association, doesn’t actually appear to disagree with Ballinger.

“In truth, the whole pajama thing is really at the bottom of our priority scale when it comes to public education,” Graves told WCIA. “We really want to see kids coming to the table of education, whether it’s at the kitchen table with the laptop there or whether it’s the actual brick and mortar schoolhouse. Raising the bar for all kids and helping them get there, whether they’re in their pajamas or tuxedo, is really what’s important.”

Though the pajama prohibition was part of the regular in-school dress code [PDF], imposing it from afar will definitely be more difficult. Fortunately, the administration’s enforcement policy is pretty vague; a statement shared with WCIA explained that “there are no definitive one-to-one consequences” for wearing your pajamas to online school, and teachers will decide what to do about any given violation.

In other words, it looks like kids with easygoing teachers (and parents) will get to stay in their nightshirts, while others might have to learn their multiplication tables in tuxedos.

[h/t WGRZ]