Liangsi Lu1, Xuhang Chen2, Minzhe Guo1, Shichu Li3, Jingchao Wang4, Yang Shi1†
1 Guangdong University of Technology, 2 Huizhou University, 3 Shenzhen University, 4 Peking University
† Corresponding author
1 Guangdong University of Technology, 2 Huizhou University, 3 Shenzhen University, 4 Peking University
† Corresponding author
- Python 3.12
- PyTorch 2.5.0
- This repository requires the
sd-turboweights: https://huggingface.co/stabilityai/sd-turbo - Model root should contain:
unet/scheduler/text_encoder/tokenizer/vae/
pip install -r requirement.txtLaunch the interactive demo:
python app.py --model-root /path/to/sd-turbo --server-port 7860Running python app.py now launches a local Gradio web app.
- Left panel: upload the original image, set source prompt, target prompt, and tuning parameters.
- Right panel: view the edited output image.
- Bottom section: click built-in examples (image + source prompt + target prompt) to auto-fill inputs.
Run PIE-Bench export with:
python run_pie_bench.py --model-root /path/to/sd-turbo --pie-root /path/to/pie_bench--pie-root should point to a PIE-Bench folder containing at least:
annotation_images/— original PIE-Bench images (subfolders keep the official naming).mapping_file.json— the mapping metadata describing prompts, instructions, and masks.
Example layout:
pie_bench
|-annotation_images
|-mapping_file.json
For PIE-Bench data preparation and protocol details, please refer to: https://github.com/cure-lab/PnPInversion
If you find our work helpful, please star 🌟 this repo and cite 📑 our paper. Thanks for your support!
@article{lu2026chordedit,
title={ChordEdit: One-Step Low-Energy Transport for Image Editing},
author={Lu, Liangsi and Chen, Xuhang and Guo, Minzhe and Li, Shichu and Wang, Jingchao and Shi, Yang},
journal={arXiv preprint arXiv:2602.19083},
year={2026}
}