DiT4Edit: Diffusion Transformer for Image Editing

Kunyu Feng1*, Yue Ma2*, Bingyuan Wang3*, Chenyang Qi2, Haozhe Chen1, Qifeng Chen2†, Zeyu Wang3,2†
Peking University1, The Hong Kong University of Science and Technology2, The Hong Kong University of Science and Technology(Guangzhou)3

Abstract

Despite recent advances in UNet-based image editing, methods for shape-aware object editing in high-resolution images are still lacking. Compared to UNet, Diffusion Transformers (DiT) demonstrate superior capabilities to effectively capture the long-range dependencies among patches, leading to higher-quality image generation. In this paper, we propose DiT4Edit, the first Diffusion Transformer-based image editing framework. Specifically, DiT4Edit uses the DPM-Solver inversion algorithm to obtain the inverted latents, reducing the number of steps compared to the DDIM inversion algorithm commonly used in UNet-based frameworks. Additionally, we design unified attention control and patch merging, tailored for transformer computation streams. This integration allows our framework to generate higher-quality edited images faster. Our design leverages the advantages of DiT, enabling it to surpass UNet structures in image editing, especially in high-resolution and arbitrary-size images. Extensive experiments demonstrate the strong performance of DiT4Edit in various editing scenarios, highlighting the potential of diffusion transformers for image editing.

PDF BibTeX
BibTeX copied to clipboard