KV-Edit: Training-Free Image Editing for Precise Background Preservation,you can use it in comfyUI
In the ./ComfyUI/custom_node directory, run the following:
git clone https://github.com/smthemex/ComfyUI_KV_Edit
pip install -r requirements.txt
-- ComfyUI/models/diffusion_models # or unet
├── flux1-dev.safetensors #23.8G 目前不能用量化版的单体,还需修改代码,全量的也能跑,慢点而已
-- ComfyUI/models/clip
├── clip_l.safetensors
├── t5xxl_fp8_e4m3fn.safetensorsvae
-- ComfyUI/models/vae
├── ae.safetensor
If you find our work helpful, please star 🌟 this repo and cite 📑 our paper. Thanks for your support!
@article{zhu2025kv,
title={KV-Edit: Training-Free Image Editing for Precise Background Preservation},
author={Zhu, Tianrui and Zhang, Shiyi and Shao, Jiawei and Tang, Yansong},
journal={arXiv preprint arXiv:2502.17363},
year={2025}
}
Our code is modified based on FLUX and RF-Solver-Edit. Special thanks to Wenke Huang for his early inspiration and helpful guidance to this project!
This repository is currently under active development and restructuring. The codebase is being optimized for better stability and reproducibility. While we strive to maintain code quality, you may encounter temporary issues during this transition period. For any questions or technical discussions, feel free to open an issue or contact us via email at [email protected].