Skip to content

FlashEdit: Decoupling Speed, Structure, and Semantics for Precise Image Editing

Notifications You must be signed in to change notification settings

JunyiWuCode/FlashEdit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

FlashEdit: Decoupling Speed, Structure, and Semantics for Precise Image Editing

Junyi Wu*, Zhiteng Li*, Haotong Qin, Xiaohong Liu, Linghe Kong, Yulun Zhang†, and Xiaokang Yang

[arXiv] [supplementary material]

🔥🔥🔥 News

  • 2025-11: This repo is released.

Abstract: Text-guided image editing with diffusion models has achieved remarkable quality but suffers from prohibitive latency, hindering real-world applications. We introduce FlashEdit, a novel framework designed to enable high-fidelity, real-time image editing. Its efficiency stems from three key innovations: (1) a One-Step Inversion-and-Editing (OSIE) pipeline that bypasses costly iterative processes; (2) a Background Shield (BG-Shield) technique that guarantees background preservation by selectively modifying features only within the edit region; and (3) a Sparsified Spatial Cross-Attention (SSCA) mechanism that ensures precise, localized edits by suppressing semantic leakage to the background. Extensive experiments demonstrate that FlashEdit maintains superior background consistency and structural integrity, while performing edits in under 0.2 seconds, which is an over 150× speedup compared to prior multi-step methods. Our code will be made publicly available at https://github.com/JunyiWuCode/FlashEdit.

Image

🔎 Results

We achieved an end-to-end latency speedup of 150.84× with negligible quality degradation, compared with DDIM + P2P.

Detailed results can be found in the paper.

 Quantitative Comparisons (click to expand)
  • Performance comparison of various methods on PieBench, Table 1 from the main paper.

    Image

  •  More Comparisons across Different Methods (click to expand)

    Image

    Citation

    If you find the code helpful in your research or work, please cite the following paper.

    @article{wu2025flashedit,
      title={FlashEdit: Decoupling Speed, Structure, and Semantics for Precise Image Editing},
      author={Wu, Junyi and Li, Zhiteng and Qin, Haotong and Liu, Xiaohong and Kong, Linghe and Zhang, Yulun and Yang, Xiaokang},
      journal={arXiv preprint arXiv:2509.22244},
      year={2025}
    }
    

    💡 Acknowledgements

    This work is released under the Apache 2.0 license.

    About

    FlashEdit: Decoupling Speed, Structure, and Semantics for Precise Image Editing

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published