FreeInv: Free Lunch for Improving DDIM Inversion
February 21, 2026 ยท View on GitHub
๐ ๏ธ Installation
pip install -r requirements.txt
๐ Run
1. DDIM Inversion
python ddim_inversion.py
2. FreeInv
python ddim_inversion.py --freeinv
Additional plug-and-play comparison examples, built upon the PnPInversion codebase, are available in the FreeInv_image/ folder.
โญ Cite
If you find this project useful in your research, we appreciate your star and citation of our work:
@article{bao2025freeinv,
title={FreeInv: Free Lunch for Improving DDIM Inversion},
author={Bao, Yuxiang and Liu, Huijie and Gao, Xun and Fu, Huan and Kang, Guoliang},
journal={arXiv preprint arXiv:2503.23035},
year={2025}
}
๐๏ธ Acknowledgement
This work is built upon the plug-and-play, TokenFlow, and PnPInversion.
๐ฆ Contact
Please contact @yuxiangbao for questions, comments and reporting bugs.