Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Direct Inversion: Boosting Diffusion-based Editing with 3 Lines of Code

About

Text-guided diffusion models have revolutionized image generation and editing, offering exceptional realism and diversity. Specifically, in the context of diffusion-based editing, where a source image is edited according to a target prompt, the process commences by acquiring a noisy latent vector corresponding to the source image via the diffusion model. This vector is subsequently fed into separate source and target diffusion branches for editing. The accuracy of this inversion process significantly impacts the final editing outcome, influencing both essential content preservation of the source image and edit fidelity according to the target prompt. Prior inversion techniques aimed at finding a unified solution in both the source and target diffusion branches. However, our theoretical and empirical analyses reveal that disentangling these branches leads to a distinct separation of responsibilities for preserving essential content and ensuring edit fidelity. Building on this insight, we introduce "Direct Inversion," a novel technique achieving optimal performance of both branches with just three lines of code. To assess image editing performance, we present PIE-Bench, an editing benchmark with 700 images showcasing diverse scenes and editing types, accompanied by versatile annotations and comprehensive evaluation metrics. Compared to state-of-the-art optimization-based inversion techniques, our solution not only yields superior performance across 8 editing methods but also achieves nearly an order of speed-up.

Xuan Ju, Ailing Zeng, Yuxuan Bian, Shaoteng Liu, Qiang Xu• 2023

Related benchmarks

TaskDatasetResultRank
Image EditingPIE-Bench
PSNR27.22
116
Image EditingPIE-Bench (test)
PSNR22.68
46
Image EditingPIE-Bench 1.0 (test)
PSNR27.22
22
Image EditingReshapeBench
AS6.11
10
Diffusion InversionBBBC021 x16
PSNR16.22
9
Diffusion Inversionedges2shoes
PSNR7.41
9
Image InversionPIE-Bench
Inference Time (s)28.17
6
Image ReconstructionPIE-Bench base model v1.4 (test)
Structure Distance2.95
5
Showing 8 of 8 rows

Other info

Code

Follow for update