CorrFill: Enhancing Faithfulness in Reference-based Inpainting with Correspondence Guidance in Diffusion Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Liu, Kuan-Hung, Yang, Cheng-Kun, Chen, Min-Hung, Liu, Yu-Lun, Lin, Yen-Yu
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915091912327168
author Liu, Kuan-Hung
Yang, Cheng-Kun
Chen, Min-Hung
Liu, Yu-Lun
Lin, Yen-Yu
author_facet Liu, Kuan-Hung
Yang, Cheng-Kun
Chen, Min-Hung
Liu, Yu-Lun
Lin, Yen-Yu
contents In the task of reference-based image inpainting, an additional reference image is provided to restore a damaged target image to its original state. The advancement of diffusion models, particularly Stable Diffusion, allows for simple formulations in this task. However, existing diffusion-based methods often lack explicit constraints on the correlation between the reference and damaged images, resulting in lower faithfulness to the reference images in the inpainting results. In this work, we propose CorrFill, a training-free module designed to enhance the awareness of geometric correlations between the reference and target images. This enhancement is achieved by guiding the inpainting process with correspondence constraints estimated during inpainting, utilizing attention masking in self-attention layers and an objective function to update the input tensor according to the constraints. Experimental results demonstrate that CorrFill significantly enhances the performance of multiple baseline diffusion-based methods, including state-of-the-art approaches, by emphasizing faithfulness to the reference images.
format Preprint
id arxiv_https___arxiv_org_abs_2501_02355
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle CorrFill: Enhancing Faithfulness in Reference-based Inpainting with Correspondence Guidance in Diffusion Models
Liu, Kuan-Hung
Yang, Cheng-Kun
Chen, Min-Hung
Liu, Yu-Lun
Lin, Yen-Yu
Computer Vision and Pattern Recognition
In the task of reference-based image inpainting, an additional reference image is provided to restore a damaged target image to its original state. The advancement of diffusion models, particularly Stable Diffusion, allows for simple formulations in this task. However, existing diffusion-based methods often lack explicit constraints on the correlation between the reference and damaged images, resulting in lower faithfulness to the reference images in the inpainting results. In this work, we propose CorrFill, a training-free module designed to enhance the awareness of geometric correlations between the reference and target images. This enhancement is achieved by guiding the inpainting process with correspondence constraints estimated during inpainting, utilizing attention masking in self-attention layers and an objective function to update the input tensor according to the constraints. Experimental results demonstrate that CorrFill significantly enhances the performance of multiple baseline diffusion-based methods, including state-of-the-art approaches, by emphasizing faithfulness to the reference images.
title CorrFill: Enhancing Faithfulness in Reference-based Inpainting with Correspondence Guidance in Diffusion Models
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2501.02355