FlexEdit: Flexible and Controllable Diffusion-based Object-centric Image Editing
Trong-Tung Nguyen, Duc-Anh Nguyen, Anh Tran, Cuong Pham
TL;DR
FlexEdit tackles the problem of fragile object-centric edits in diffusion-based image editing by introducing an iterative latent-editing framework. At each denoising step, a FlexEdit block performs latent optimization guided by explicit object constraints and latent blending using an adaptive binary mask derived from attention maps, balancing editing semantics with background fidelity. The approach is validated on real and synthetic data with new object-centric benchmarks and metrics, demonstrating competitive trade-offs against state-of-the-art methods and strong user preferences. Limitations include potential failures from imperfect attention-derived masks and higher computational cost due to multi-step optimization, motivating future work on faster or single-step editing while maintaining fidelity.
Abstract
Our work addresses limitations seen in previous approaches for object-centric editing problems, such as unrealistic results due to shape discrepancies and limited control in object replacement or insertion. To this end, we introduce FlexEdit, a flexible and controllable editing framework for objects where we iteratively adjust latents at each denoising step using our FlexEdit block. Initially, we optimize latents at test time to align with specified object constraints. Then, our framework employs an adaptive mask, automatically extracted during denoising, to protect the background while seamlessly blending new content into the target image. We demonstrate the versatility of FlexEdit in various object editing tasks and curate an evaluation test suite with samples from both real and synthetic images, along with novel evaluation metrics designed for object-centric editing. We conduct extensive experiments on different editing scenarios, demonstrating the superiority of our editing framework over recent advanced text-guided image editing methods. Our project page is published at https://flex-edit.github.io/.
