Skip to content

[CVPR 2024] Official implementation of CVPR 2024 paper: "Inversion-Free Image Editing with Natural Language"

License

Notifications You must be signed in to change notification settings

sled-group/InfEdit

Repository files navigation

Inversion-Free Image Editing with Natural Language

Sihan Xu*, Yidong Huang*, Jiayi Pan, Ziqiao Ma, Joyce Chai
University of Michigan, Ann Arbor
University of California, Berkeley

icon

Setup

This code was tested with python 3.9, Pytorch 2.2.1 using pretrained models through huggingface / diffusers. Specifically, we implemented our method over LCM and prompt2prompt.

Quickstart

Requirements

We implemented our method with diffusers with a similar code structure to prompt2prompt but we modified the code to adapt to newest diffusors version. You can download the requirements using

pip install -r requirements.txt

Demos

Online demos

We provide online demo with Gradio app. You can play with the it or clone it to your own device!

Local Gradio demo

You can launch the provided Gradio demo locally with

python app_infedit.py

For further information about the input parameters, please refer to the Handbook.

Citation

@article{xu2023infedit,
  title={Inversion-Free Image Editing with Natural Language}, 
  author={Sihan Xu and Yidong Huang and Jiayi Pan and Ziqiao Ma and Joyce Chai},
  booktitle={Conference on Computer Vision and Pattern Recognition 2024},
  year={2024}
}

Acknowledgements

We thank the awesome research works Prompt-to-Prompt, LCM and Masactrl.