Support Provided ByLearn More
Tech + EngineeringTech & Engineering

‘Enhance!’ TV Trope Becomes Real Thanks to Two Neural Networks

ByTim De ChantNOVA NextNOVA Next

“What’s that over there? Zoom in…now…enhance!”

Receive emails about upcoming NOVA programs and related content, as well as featured reporting about current events through a science lens.

The magical “enhance” tool has been a treasured device of scriptwriters for decades, allowing them to reveal key clues in a plot at the press of a button—and it’s been entirely unrealistic, until now.

Anyone who has taken a photo knows that it’s impossible to dig up more detail—you can’t add pixels that weren’t originally captured by the sensor. “Enhancing” the photo to add, say, a nose is nothing more than pulling data out of thin air. Which, in a sense, is what engineers working on Google Brain have done, just in a very clever way.

Support Provided ByLearn More
Results from the new enhance tool show how the blurry image (left) can be enhanced (middle) using neural networks. The reference images (right) help judge the quality of the enhancements.

Their new technique uses two neural networks to make an educated guess as to what details might be lurking within a blurry image. In this case, the study tasked the algorithms to look at photos of bedrooms and celebrities. One of the algorithms, the conditioning network, scanned a large number of related but higher-resolution images and downsized them to the lower resolution, 8×8 pixels in this case. It then created a probability distribution for each lower-resolution pixel, essentially building a map of likelihoods for what each chunky pixel might contain. For example, in one 8×8 image, a dark pixel three rows down from the top has a good chance of containing color information about a person’s pupil.

The other algorithm, known as the prior network, then adds more detail to the 8×8 images based on higher-resolution images of similar photos—the bedrooms or celebrities. By having the two neural networks work together, the Google Brain team was able to use conditioning network’s probability maps to help the prior network make better guesses as to what detail should be present in each 8×8 image.

The result was a series of 64×64 pixel images that add realistic detail to the original 8×8 images and are surprisingly similar to the 64×64 originals used to assess the tool’s output. Here’s Sebastian Anthony, writing for Ars Technica:

Google Brain’s super-resolution technique was reasonably successful in real-world testing. When human observers were shown a real high-resolution celebrity face vs. the upscaled computed image, they were fooled 10 percent of the time (50 percent would be a perfect score). For the bedroom images, 28 percent of humans were fooled by the computed image. Both scores are much more impressive than normal bicubic scaling, which fooled no human observers.

That humans are better at telling the “enhanced” faces from the originals isn’t surprising—we’re remarkably good at telling faces apart, a skill that only gets stronger as we mature into adults—but it’s likely that, as these algorithms are trained on more images, they’ll get better at adding more accurate details where there were none.


Image credit: Dahl et al. 2017/Google Brain

Funding for NOVA Next is provided by the Eleanor and Howard Morgan Family Foundation.

Major funding for NOVA is provided by the David H. Koch Fund for Science, the Corporation for Public Broadcasting, and PBS viewers. Additional funding is provided by the NOVA Science Trust.