osunlp / InstructPix2Pix-MagicBrush

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: November 08 2023

Introduction of InstructPix2Pix-MagicBrush

Model Details of InstructPix2Pix-MagicBrush

InstructPix2Pix checkpoint fine-tuned on MagicBrush .

1. Env Setup

To use the InstructPix2Pix checkpoint fine-tuned on MagicBrush, set up env with following command:

git clone https://github.com/timothybrooks/instruct-pix2pix.git
cd instruct-pix2pix
mkdir checkpoints

Download this checkpoint into checkpoints folder via

cd checkpoints
# recent best checkpoint:
wget https://huggingface.co/osunlp/InstructPix2Pix-MagicBrush/resolve/main/MagicBrush-epoch-52-step-4999.ckpt
# checkpoint in the paper
# wget https://huggingface.co/osunlp/InstructPix2Pix-MagicBrush/resolve/main/MagicBrush-epoch-000168.ckpt

Then go back to the root folder and set up the running env following the InstructPix2Pix guidelines.

2. Launch
Edit a single image:
python edit_cli.py --input [YOUR_IMG_PATH] --output imgs/output.jpg --edit "EDIT INSTRUCTION" --ckpt checkpoints/MagicBrush-epoch-52-step-4999.ckpt
 
# Our model is fine-tuned for fine-grained real image editing. Therefore, it may not perform well on style transfer or other editings on large region.
# e.g. python edit_cli.py --input imgs/example.jpg --output imgs/output.jpg --edit "let him wear a pair of sun glasses" --ckpt checkpoints/MagicBrush-epoch-52-step-4999.ckpt
Source Image Target Image
Run the interactive editing Gradio app:
python edit_app.py --ckpt checkpoints/MagicBrush-epoch-52-step-4999.ckpt
Citation

If you find this checkpoint useful, please consider citing our paper:

@inproceedings{Zhang2023MagicBrush,
        title={MagicBrush: A Manually Annotated Dataset for Instruction-Guided Image Editing},
        author={Kai Zhang and Lingbo Mo and Wenhu Chen and Huan Sun and Yu Su},
        booktitle={Advances in Neural Information Processing Systems},
        year={2023}
}

And prior work:

@InProceedings{brooks2022instructpix2pix,
    author     = {Brooks, Tim and Holynski, Aleksander and Efros, Alexei A.},
    title      = {InstructPix2Pix: Learning to Follow Image Editing Instructions},
    booktitle  = {CVPR},
    year       = {2023},
}

Runs of osunlp InstructPix2Pix-MagicBrush on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About InstructPix2Pix-MagicBrush huggingface.co Model

More InstructPix2Pix-MagicBrush license Visit here:

https://choosealicense.com/licenses/creativeml-openrail-m

InstructPix2Pix-MagicBrush huggingface.co

InstructPix2Pix-MagicBrush huggingface.co is an AI model on huggingface.co that provides InstructPix2Pix-MagicBrush's model effect (), which can be used instantly with this osunlp InstructPix2Pix-MagicBrush model. huggingface.co supports a free trial of the InstructPix2Pix-MagicBrush model, and also provides paid use of the InstructPix2Pix-MagicBrush. Support call InstructPix2Pix-MagicBrush model through api, including Node.js, Python, http.

InstructPix2Pix-MagicBrush huggingface.co Url

https://huggingface.co/osunlp/InstructPix2Pix-MagicBrush

osunlp InstructPix2Pix-MagicBrush online free

InstructPix2Pix-MagicBrush huggingface.co is an online trial and call api platform, which integrates InstructPix2Pix-MagicBrush's modeling effects, including api services, and provides a free online trial of InstructPix2Pix-MagicBrush, you can try InstructPix2Pix-MagicBrush online for free by clicking the link below.

osunlp InstructPix2Pix-MagicBrush online free url in huggingface.co:

https://huggingface.co/osunlp/InstructPix2Pix-MagicBrush

InstructPix2Pix-MagicBrush install

InstructPix2Pix-MagicBrush is an open source model from GitHub that offers a free installation service, and any user can find InstructPix2Pix-MagicBrush on GitHub to install. At the same time, huggingface.co provides the effect of InstructPix2Pix-MagicBrush install, users can directly use InstructPix2Pix-MagicBrush installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

InstructPix2Pix-MagicBrush install url in huggingface.co:

https://huggingface.co/osunlp/InstructPix2Pix-MagicBrush

Url of InstructPix2Pix-MagicBrush

InstructPix2Pix-MagicBrush huggingface.co Url

Provider of InstructPix2Pix-MagicBrush huggingface.co

osunlp
ORGANIZATIONS

Other API from osunlp

huggingface.co

Total runs: 1.8K
Run Growth: 158
Growth Rate: 8.97%
Updated:April 17 2025
huggingface.co

Total runs: 748
Run Growth: 116
Growth Rate: 15.51%
Updated:February 17 2025
huggingface.co

Total runs: 335
Run Growth: -185
Growth Rate: -55.22%
Updated:December 08 2023
huggingface.co

Total runs: 120
Run Growth: 88
Growth Rate: 73.33%
Updated:May 12 2025
huggingface.co

Total runs: 82
Run Growth: 48
Growth Rate: 58.54%
Updated:April 09 2025
huggingface.co

Total runs: 18
Run Growth: 0
Growth Rate: 0.00%
Updated:January 19 2026
huggingface.co

Total runs: 13
Run Growth: 3
Growth Rate: 23.08%
Updated:October 17 2025
huggingface.co

Total runs: 11
Run Growth: -3
Growth Rate: -27.27%
Updated:April 17 2025
huggingface.co

Total runs: 10
Run Growth: 2
Growth Rate: 20.00%
Updated:July 04 2023
huggingface.co

Total runs: 4
Run Growth: 2
Growth Rate: 50.00%
Updated:April 09 2025