Masked Latent Decoder for Seamless Image Inpainting

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional diffusion models face challenges in image inpainting tasks due to imperfect blending of generated content with surrounding image structures, leading to seam mismatch, color inconsistency, and texture discrepancies.

Innovation Solution

A masked latent decoder is trained using image domain augmentation and latent code augmentation methods to simulate seam mismatch, color inconsistency, and texture discrepancies, ensuring a seamless transition between the inpainted and original image regions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Manufacturing precision

If conventional diffusion models are used for image inpainting, then image generation capability is achieved, but seam mismatch and color inconsistency occur at inpainting boundaries

Engineering Contradiction:
Improveinpainting boundary consistencyVSAvoidseam mismatch and color inconsistency
Core Design Contradiction:
Manufacturing precisionVSObject-generated harmful factors

Solution Approach 1:

The decoder is trained in advance using augmented latent codes that simulate potential mismatches. By preparing the decoder with pre-augmented training data that includes seam mismatches, color inconsistencies, and texture discrepancies, the system learns to compensate for these issues before actual inpainting occurs, eliminating the need for post-processing corrections

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The training process introduces artificial seam mismatches and color inconsistencies as augmentation techniques. By deliberately creating these harmful conditions during training, the decoder learns to counteract and correct them, effectively neutralizing the problems before they manifest in the final inpainted output

Inventive Principle:
Principle #9Preliminary anti-action

2Reliability

If latent code augmentation is applied to simulate imperfections, then training robustness is improved, but training complexity increases

Engineering Contradiction:
Improvedecoder robustness to latent code variationsVSAvoidtraining process complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The method modifies the latent code parameters by applying augmentation techniques such as noise injection, color shifts, and geometric transformations. These parameter changes simulate real-world variations and imperfections, enabling the decoder to learn robustness to different latent code conditions without requiring architectural modifications

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

Multiple augmented versions of the same latent code are created during training. By generating copies with different augmentations (noise, color shifts, etc.), the system efficiently trains the decoder to handle variations without increasing model complexity, as all copies share the same base structure

Inventive Principle:
Principle #26Copying

Data Source

PatentUS20250328998A1Masked latent decoder for image inpainting
Publication Date: 2025.10.23 ADOBE INC
  • US20250328998A1 patent drawing
  • US20250328998A1 patent drawing
  • US20250328998A1 patent drawing

AI summary

A method, apparatus, non-transitory computer readable medium, and system for image processing include obtaining an input image and an input mask, where the input image depicts a scene and the input mask indicates an inpainting region of the input image. A latent code is generated, using a generator network of an image generation model, based on the input image and the input mask. The latent code includes synthesized content in the inpainting region. A synthetic image is generated, using a decoder network of the image generation model, based on the latent code and the input image. The synthetic image depicts the scene from the input image outside the inpainting region and includes the synthesized content within the inpainting region, and the synthetic image comprises a seamless transition across a boundary of the inpainting region.