Introduction
Text-to-image models have revolutionized digital content creation, yet mask-free image editing—specifically the seamless addition of objects without manual masking—remains a significant challenge. Existing methods often suffer from background shifts or unrealistic object blending due to a lack of high-quality paired training data. This paper introduces PIPE (Paint by Inpaint Editing), a framework that addresses this "data gap" by flipping the problem: learning to add objects by first removing them from real-world images.
The PIPE Framework
The core innovation of PIPE is the Inpaint-to-Paint pipeline. Rather than synthesizing artificial scenes, the authors leverage real photographs from datasets like COCO and LVIS.
- Object Removal: Using high-quality inpainting models, objects are removed from real images, filling the resulting holes with plausible backgrounds.
- Reversal Training: The inpainted image serves as the "source," while the original photograph is the "target." This provides the model with a ground-truth pair where the added object is a real, natural part of the scene.
- Instruction Generation: A Vision-Language Model (VLM) describes the removed objects, and a Large Language Model (LLM) converts these descriptions into natural language instructions (e.g., "Add a vintage-style wooden chair to the corner").
- Filtering: A multi-stage CLIP consensus filter ensures only high-quality, consistent inpainting results are used for training.
The PIPE Dataset
The resulting PIPE Dataset contains approximately 1 million image pairs covering over 1,400 object classes. By using real images as targets, the model learns the complex interplay of shadows, reflections, and perspective that synthetic data often lacks.
Results and Evaluation
PIPE significantly outperforms previous state-of-the-art models like InstructPix2Pix (IP2P). In human evaluations, PIPE was preferred ~73% of the time for its ability to produce realistic, "baked-in" edits.
The model excels at preserving the original background (source-target consistency) while integrating new objects with realistic lighting and textures. Unlike synthetic generators, PIPE captures how objects actually look in the real world, including complex lighting and textures.
Conclusion
PIPE demonstrates that the key to realistic image addition lies in leveraging the realism of existing photography through an inverted inpainting process. While challenges remain in handling long-distance reflections and complex physical interactions, PIPE sets a new benchmark for mask-free, instruction-based image editing.
Summary updated