Skip to main content
  1. Home
  2. Computing
  3. Emerging Tech
  4. News

Photorealistic A.I. tool can fill in gaps in images, including faces

Add as a preferred source on Google
Image used with permission by copyright holder

You only need to go check out the latest Hollywood blockbuster or pick up a new AAA game title to be reminded that computer graphics can be used to create some dazzling otherworldly images when called for. But some of the most impressive examples of machine-generated images aren’t necessarily alien landscapes or giant monsters, they’re image modifications that we don’t even notice.

That’s the case with a new A.I. demonstration created by computer scientists in China. A collaboration between Sun Yat-sen University in Guangzhou and Beijing’s Microsoft Research lab, they’ve developed a smart artificial intelligence which can be used to accurately fill in blank areas in an image: Whether that’s a missing face or the front of a building.

Recommended Videos

Called inpainting, the technique uses deep learning technology to fill these spaces either by copying image patches on the remainder of the picture, or by generating new areas that look convincingly accurate. The tool, which is referred to by its creators as PEN-Net (Pyramid-context ENcoder Network), does this image restoration by “encoding contextual semantics from full-resolution input and decoding the learned semantic features back into images.” The resulting Attention Transfer Network (ATN) images are not only impressively realistic, but the tool is also very quick to learn.

“[In this work, we proposed] a deep generative model for high-quality image inpainting tasks,” Yanhong Zeng, a lead author on the project, who is associated with both Sun Yat-sen University’s School of Data and Computer Science and Key Laboratory of Machine Intelligence and Advanced Computing, told Digital Trends. “Our model fills missing regions from deep to shallow at all levels, based on a cross-layer attention mechanism, so that both structure and texture coherence can be ensured in inpainting results. We are excited to see that our model is capable of generating clearer textures and more reasonable structures than previous works.”

As Zeng notes, this isn’t the first time researchers have developed tools to carry out inpainting. However, the team’s PEN-Net system demonstrates impressive results next to classical method PatchMatch and even other state-of-the-art approaches.

“Image inpainting has a wide range of applications in our daily life,” Zeng continued. “We are now planning to apply our technology in image editing — especially for object removal [and] old photo restoration.”

A paper describing the work, titled “Learning Pyramid-Context Encoder Network for High-Quality Image Inpainting,” is available to read on preprint paper repository Arxiv.

Luke Dormehl
I'm a UK-based tech writer covering Cool Tech at Digital Trends. I've also written for Fast Company, Wired, the Guardian…
Apple’s busy month could see another batch of new devices in late October
More macs, updated HomePod mini, refreshed iPad mini, the long-awaited smart home hub, and more.
Apple-TV-4K

Apple's Fall launch slate for 2026 is looking absolutely stacked. The company has already lifted the covers from next-generation Mac hardware, alongside new iPhones, AirPods, and a couple of updated smartwatches. But it seems the company has a lot more to show before the year comes to an end.

It was recently reported that the company has set the date for an event on October 13, where it could reveal updated Apple TV hardware, its long-awaited smart home hub device, and a refreshed HomePod mini. Now, a fresh rumor claims that the companty has a second batch of product reveals lined up for late October.

Read more
Wikipedia says rogue OpenAI agents attacked its platforms and hammered its servers
Wikimedia says rogue OpenAI agents probed its services, made unauthorized edits and generated millions of requests, raising fresh concerns about AI agents and the open web.
OpenAI website open on MacBook

OpenAI's AI agents have been busy, and not in a good way. They have already hacked Hugging Face, and the company is under probe for hacking an Australian government website. In June, its agents swamped a United Nations website with search requests, then used pushy tactics to access its data. 

Now, the Wikimedia Foundation has revealed that these "rogue" agents paid Wikimedia’s website, including Wikipedia a visit too. Wikimedia launched its own probe and confirmed that OpenAI's agents had been active on its platforms without permission. The good news is that they didn't manage to breach any systems or data.

Read more
Some Googlebook features are off-limits if your phone is stuck below Android 17
Googlebook does not require Android 17 to work, but you’ll miss several major phone-connected features without it.
ASUS Googlebook 14

Googlebooks are finally here, and one of its biggest selling points is how closely it works with your Android phone. However, there is one catch - you need Android 17 for some of the most useful cross-device features.

Which Googlebook features need Android 17?

Read more