NVIDIA Inpainting Uses AI To Magically Rebuild Corrupted Or Damaged Images

nvidia inpainting sample
NVIDIA researchers have come up with some new artificial intelligence (AI) technology that can help fill in the blanks with respect to images that have either been corrupted or otherwise having missing details. With a team lead by NVIDIA's Guilin Liu, missing pixels can be quickly reclaimed with stunning results.

This process, which NVIDIA calls image inpainting, can be used not only for restoring missing image pixels, but also for removing an unwanted object from a scene and filling it back in. If this sounds familiar, it's because Photoshop has been able to perform similar operations with Content-Aware Fill, which was introduced in the CS5 release.

However, NVIDIA goes a step further given that inpainting was trained using 55,116 random streaks and holes to improve its performance. Another 25,000 were generated to further test the algorithm's accuracy. 

nvidia inpainting masks training
Sample masks used during the training process.

“Our model can robustly handle holes of any shape, size location, or distance from the image borders,” wrote the NVIDIA researchers in a paper on inpainting. “Further, our model gracefully handles holes of increasing size.

“To the best of our knowledge, we are the first to demonstrate the efficacy of deep learning image inpainting models on irregularly shaped holes.”

NVIDIA of course has plenty of high-powered hardware to pull from for its machine learning exercises, and in this case used Tesla V100 GPUs linked up with a cuDNN-accelerated PyTorch deep learning framework.

To see NVIDIA image inpainting in action, simply take a look at the embedded video above. The results are remarkable, especially when looking at woman's "gouged out" eyes being replaced with two new ones. The results aren't always perfect, but it's still a remarkable achievement that shows a lot of promise.

Eventually, NVIDIA says that its image inpainting technique could be integrated into photo editing software.

Brandon Hill

Brandon Hill

Brandon received his first PC, an IBM Aptiva 310, in 1994 and hasn’t looked back since. He cut his teeth on computer building/repair working at a mom and pop computer shop as a plucky teen in the mid 90s and went on to join AnandTech as the Senior News Editor in 1999. Brandon would later help to form DailyTech where he served as Editor-in-Chief from 2008 until 2014. Brandon is a tech geek at heart, and family members always know where to turn when they need free tech support. When he isn’t writing about the tech hardware or studying up on the latest in mobile gadgets, you’ll find him browsing forums that cater to his long-running passion: automobiles.

Opinions and content posted by HotHardware contributors are their own.