arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2404.11949cs.CVcs.AIcs.LG
收藏

草图引导的图像修复:部分离散扩散过程

Sketch-guided Image Inpainting with Partial Discrete Diffusion Process

IIT Jodhpur(焦特布尔印度理工学院);IISc(印度科学学院)

Nakul Sharma, Aditay Tripathi, Anirban Chakraborty, Anand Mishra

AI总结:

提出部分离散扩散过程(PDDP)与草图引导双向Transformer,实现草图引导的图像修复,有效解决域差距,提升修复质量,并在合成数据集上验证了有效性。

摘要:

在本工作中,我们研究了草图引导的图像修复任务。与已被充分探索的自然语言引导图像修复(其擅长捕捉语义细节)不同,草图引导修复的研究相对较少,但它在指定待修复对象的形状和姿态方面提供了更大的用户控制。作为该任务的早期解决方案之一,我们提出了一种新颖的部分离散扩散过程(PDDP)。PDDP的前向过程破坏图像中被掩蔽的区域,而后向过程则基于手绘草图,利用我们提出的草图引导双向Transformer重建这些掩蔽区域。该新颖的Transformer模块接受两个输入——包含待修复掩蔽区域的图像和查询草图,以建模逆向扩散过程。该策略有效解决了草图与自然图像之间的域差距,从而提升了修复结果的质量。由于缺乏针对此任务的大规模数据集,我们从MS-COCO合成了一个数据集,用于训练并广泛评估我们提出的框架,与文献中的多种有竞争力的方法进行比较。定性和定量结果以及用户研究证明,所提出的方法能够修复出符合所提供草图视觉外观、且与上下文契合的逼真对象。为促进进一步研究,我们已在https://github.com/vl2g/Sketch-Inpainting公开了我们的代码。

英文摘要:

In this work, we study the task of sketch-guided image inpainting. Unlike the well-explored natural language-guided image inpainting, which excels in capturing semantic details, the relatively less-studied sketch-guided inpainting offers greater user control in specifying the object's shape and pose to be inpainted. As one of the early solutions to this task, we introduce a novel partial discrete diffusion process (PDDP). The forward pass of the PDDP corrupts the masked regions of the image and the backward pass reconstructs these masked regions conditioned on hand-drawn sketches using our proposed sketch-guided bi-directional transformer. The proposed novel transformer module accepts two inputs -- the image containing the masked region to be inpainted and the query sketch to model the reverse diffusion process. This strategy effectively addresses the domain gap between sketches and natural images, thereby, enhancing the quality of inpainting results. In the absence of a large-scale dataset specific to this task, we synthesize a dataset from the MS-COCO to train and extensively evaluate our proposed framework against various competent approaches in the literature. The qualitative and quantitative results and user studies establish that the proposed method inpaints realistic objects that fit the context in terms of the visual appearance of the provided sketch. To aid further research, we have made our code publicly available at https://github.com/vl2g/Sketch-Inpainting .

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑