Insert Anything: Image Insertion via In-Context Editing in DiT

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Song, Wensong, Jiang, Hong, Yang, Zongxing, Quan, Ruijie, Yang, Yi
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915251984793600
author Song, Wensong
Jiang, Hong
Yang, Zongxing
Quan, Ruijie
Yang, Yi
author_facet Song, Wensong
Jiang, Hong
Yang, Zongxing
Quan, Ruijie
Yang, Yi
contents This work presents Insert Anything, a unified framework for reference-based image insertion that seamlessly integrates objects from reference images into target scenes under flexible, user-specified control guidance. Instead of training separate models for individual tasks, our approach is trained once on our new AnyInsertion dataset--comprising 120K prompt-image pairs covering diverse tasks such as person, object, and garment insertion--and effortlessly generalizes to a wide range of insertion scenarios. Such a challenging setting requires capturing both identity features and fine-grained details, while allowing versatile local adaptations in style, color, and texture. To this end, we propose to leverage the multimodal attention of the Diffusion Transformer (DiT) to support both mask- and text-guided editing. Furthermore, we introduce an in-context editing mechanism that treats the reference image as contextual information, employing two prompting strategies to harmonize the inserted elements with the target scene while faithfully preserving their distinctive features. Extensive experiments on AnyInsertion, DreamBooth, and VTON-HD benchmarks demonstrate that our method consistently outperforms existing alternatives, underscoring its great potential in real-world applications such as creative content generation, virtual try-on, and scene composition.
format Preprint
id arxiv_https___arxiv_org_abs_2504_15009
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Insert Anything: Image Insertion via In-Context Editing in DiT
Song, Wensong
Jiang, Hong
Yang, Zongxing
Quan, Ruijie
Yang, Yi
Computer Vision and Pattern Recognition
This work presents Insert Anything, a unified framework for reference-based image insertion that seamlessly integrates objects from reference images into target scenes under flexible, user-specified control guidance. Instead of training separate models for individual tasks, our approach is trained once on our new AnyInsertion dataset--comprising 120K prompt-image pairs covering diverse tasks such as person, object, and garment insertion--and effortlessly generalizes to a wide range of insertion scenarios. Such a challenging setting requires capturing both identity features and fine-grained details, while allowing versatile local adaptations in style, color, and texture. To this end, we propose to leverage the multimodal attention of the Diffusion Transformer (DiT) to support both mask- and text-guided editing. Furthermore, we introduce an in-context editing mechanism that treats the reference image as contextual information, employing two prompting strategies to harmonize the inserted elements with the target scene while faithfully preserving their distinctive features. Extensive experiments on AnyInsertion, DreamBooth, and VTON-HD benchmarks demonstrate that our method consistently outperforms existing alternatives, underscoring its great potential in real-world applications such as creative content generation, virtual try-on, and scene composition.
title Insert Anything: Image Insertion via In-Context Editing in DiT
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2504.15009