A Task is Worth One Word: Learning with Task Prompts for High-Quality Versatile Image Inpainting
Preprint
Abstract
Achieving high-quality versatile image inpainting, where user-specified regions are filled with plausible content according to user intent, presents a significant challenge. Existing methods face difficulties in simultaneously addressing context-aware image inpainting and text-guided object inpainting due to the distinct optimal training strategies required. To overcome this challenge, we introduce PowerPaint, the first high-quality and versatile inpainting model that excels in both tasks. First, we introduce learnable task prompts along with tailored fine-tuning strategies to guide the model's focus on different inpainting targets explicitly. This enables PowerPaint to accomplish various inpainting tasks by utilizing different task prompts, resulting in state-of-the-art performance. Second, we demonstrate the versatility of the task prompt in PowerPaint by showcasing its effectiveness as a negative prompt for object removal. Additionally, we leverage prompt interpolation techniques to enable controllable shape-guided object inpainting. Finally, we extensively evaluate PowerPaint on various inpainting benchmarks to demonstrate its superior performance for versatile image inpainting. We release our codes and models on our project page: https://powerpaint.github.io/.Keywords
All Related Versions
This publication has 9 references indexed in Scilit:
- PatchMatch: A Randomized Correspondence Algorithm for Structural Image Editing2023
- Free-Form Image Inpainting With Gated Convolution2019
- The Unreasonable Effectiveness of Deep Features as a Perceptual Metric2018
- Generative Image Inpainting with Contextual Attention2018
- Places: A 10 Million Image Database for Scene RecognitionIEEE Transactions on Pattern Analysis and Machine Intelligence, 2017
- Generative Face Completion2017
- Context Encoders: Feature Learning by Inpainting2016
- Region Filling and Object Removal by Exemplar-Based Image InpaintingIEEE Transactions on Image Processing, 2004
- Simultaneous structure and texture image inpaintingIEEE Transactions on Image Processing, 2003