【CVPR 2025 Oral】Official Repo for Paper "AnyEdit: Mastering Unified High-Quality Image Editing for Any Idea"
229
stars
29
commits
Jupyter Notebook
primary language
Apr 5, 2025
updated
Juncheng Li1, Siliang Tang1, Hanwang Zhang2, Yueting Zhuang1
1Zhejiang University, 2Nanyang Technological University, 3Alibaba Group
*Equal Contribution.
AnyEdit is a comprehensive multimodal instruction editing dataset, comprising 2.5 million high-quality editing pairs spanning over 20 editing types across five domains. We ensure the diversity and quality of the AnyEdit collection through three aspects: initial data diversity, adaptive editing process, and automated selection of editing results. Using the dataset, we further train a novel AnyEdit Stable Diffusion with task-aware routing and learnable task embedding for unified image editing. Comprehensive experiments on three benchmark datasets show that AnyEdit consistently boosts the performance of diffusion-based editing models. This presents prospects for developing instruction-driven image editing models that support human creativity.
Full training set and dev set are publicly available on Huggingface. We only provide a zip file for the test split to prevent potential data contamination from foundation models crawling the test set for training. Please download the test set here.
We comprehensively categorize image editing tasks into 5 groups based on different editing capabilities:

{
"edit": "change the airplane to green", # edited instruction
"edited object": "airplane", # the edited region, only for local editing, else is None
"input": "a small airplane sits stationary on a piece of concrete.", # the caption of the original image
"output": "A green small airplane sits stationary on a piece of concrete.", # the caption of the edited image
"edit_type": "color_alter", # editing type
"visual_input": "None", # the reference image for visual input instruction, else is None
"image_file": "COCO_train2014_000000521165.jpg", # the file of original image
"edited_file": "xxxxx.png" # the file of edited image
}

bash setup.sh
CUDA_VISIBLE_DEVICES=2 python pre_filter.py --instruction-path [xx.json] --instruction-type [] --image-root []
CUDA_VISIBLE_DEVICES=2 python post_filter.py --instruction-type []
| Original Image | Edit Type | Edit Instruction | Edited Image |
|---|---|---|---|
![]() | Action Change | Make the action of the plane to taking off | ![]() |
![]() | Add | Include a candle on top of the cake | ![]() |
![]() | Appearance Alter | Make the horses wearing garlands | ![]() |
![]() | Background Change | Alter the background to a garden | ![]() |
![]() | Color Alter | Alter the color of frame to orange | ![]() |
![]() | Counting | The number of camels increases to two | ![]() |
![]() | Implicit Change | What will happen if the sun never go down? | ![]() |
![]() | Material Change | Change the material of kitten like aluminium_foil | ![]() |
![]() | Movement | Shift the man in the image | ![]() |
![]() | Outpaint | Outpaint the image as you can | ![]() |
![]() | Relation | Place two yellow flowers in the middle of the table | ![]() |
![]() | Remove | Remove the person on skis | ![]() |
![]() | Replace | Replace the elephant with a seal | ![]() |
![]() | Resize | Zoom out the giraffes in the image | ![]() |
![]() | Rotation Change | Turn the bag counterclockwise | ![]() |
![]() | Style Change | Change the style of the image to contrast | ![]() |
![]() | Textual Change | Replace the text 'eddie' with 'stobart' | ![]() |
![]() | Tune Transfer | Change the season to autumn | ![]() |
| Original Image | Reference Image | Edit Type | Edit Instruction | Edited Image |
|---|---|---|---|---|
![]() | ![]() | Visual Bbox | Follow the given bounding box [v*] to remove the skis | ![]() |
![]() | ![]() | Visual Depth | Refer to the given depth image [v*] to remove umbrella | ![]() |
![]() | ![]() | Visual Material Transfer | Change the material of monument like linen | ![]() |
![]() | ![]() | Visual Reference | Replace the elephants to [v*] | ![]() |
![]() | ![]() | Visual Scribble | Refer to the given scribble [v*] to replace the toilet paper with a book | ![]() |
![]() | ![]() | Visual Segment | Follow the given segment image [v*] to remove truck | ![]() |
![]() | ![]() | Visual Sketch | Watch the given sketch [v*] to replace the bananas to apples | ![]() |
If you find this work useful for your research, please cite our paper and star our git repo:
@article{yu2024anyedit,
title={AnyEdit: Mastering Unified High-Quality Image Editing for Any Idea},
author={Yu, Qifan and Chow, Wei and Yue, Zhongqi and Pan, Kaihang and Wu, Yang and Wan, Xiaoyang and Li, Juncheng and Tang, Siliang and Zhang, Hanwang and Zhuang, Yueting},
journal={arXiv preprint arXiv:2411.15738},
year={2024}
}
29 commits
Jupyter Notebook
81.0%
Python
18.5%
【CVPR 2025 Oral】Official Repo for Paper "AnyEdit: Mastering Unified High-Quality Image Editing for Any Idea"
229
stars
29
commits
Jupyter Notebook
primary language
Apr 5, 2025
updated
Juncheng Li1, Siliang Tang1, Hanwang Zhang2, Yueting Zhuang1
1Zhejiang University, 2Nanyang Technological University, 3Alibaba Group
*Equal Contribution.
AnyEdit is a comprehensive multimodal instruction editing dataset, comprising 2.5 million high-quality editing pairs spanning over 20 editing types across five domains. We ensure the diversity and quality of the AnyEdit collection through three aspects: initial data diversity, adaptive editing process, and automated selection of editing results. Using the dataset, we further train a novel AnyEdit Stable Diffusion with task-aware routing and learnable task embedding for unified image editing. Comprehensive experiments on three benchmark datasets show that AnyEdit consistently boosts the performance of diffusion-based editing models. This presents prospects for developing instruction-driven image editing models that support human creativity.
Full training set and dev set are publicly available on Huggingface. We only provide a zip file for the test split to prevent potential data contamination from foundation models crawling the test set for training. Please download the test set here.
We comprehensively categorize image editing tasks into 5 groups based on different editing capabilities:

{
"edit": "change the airplane to green", # edited instruction
"edited object": "airplane", # the edited region, only for local editing, else is None
"input": "a small airplane sits stationary on a piece of concrete.", # the caption of the original image
"output": "A green small airplane sits stationary on a piece of concrete.", # the caption of the edited image
"edit_type": "color_alter", # editing type
"visual_input": "None", # the reference image for visual input instruction, else is None
"image_file": "COCO_train2014_000000521165.jpg", # the file of original image
"edited_file": "xxxxx.png" # the file of edited image
}

bash setup.sh
CUDA_VISIBLE_DEVICES=2 python pre_filter.py --instruction-path [xx.json] --instruction-type [] --image-root []
CUDA_VISIBLE_DEVICES=2 python post_filter.py --instruction-type []
| Original Image | Edit Type | Edit Instruction | Edited Image |
|---|---|---|---|
![]() | Action Change | Make the action of the plane to taking off | ![]() |
![]() | Add | Include a candle on top of the cake | ![]() |
![]() | Appearance Alter | Make the horses wearing garlands | ![]() |
![]() | Background Change | Alter the background to a garden | ![]() |
![]() | Color Alter | Alter the color of frame to orange | ![]() |
![]() | Counting | The number of camels increases to two | ![]() |
![]() | Implicit Change | What will happen if the sun never go down? | ![]() |
![]() | Material Change | Change the material of kitten like aluminium_foil | ![]() |
![]() | Movement | Shift the man in the image | ![]() |
![]() | Outpaint | Outpaint the image as you can | ![]() |
![]() | Relation | Place two yellow flowers in the middle of the table | ![]() |
![]() | Remove | Remove the person on skis | ![]() |
![]() | Replace | Replace the elephant with a seal | ![]() |
![]() | Resize | Zoom out the giraffes in the image | ![]() |
![]() | Rotation Change | Turn the bag counterclockwise | ![]() |
![]() | Style Change | Change the style of the image to contrast | ![]() |
![]() | Textual Change | Replace the text 'eddie' with 'stobart' | ![]() |
![]() | Tune Transfer | Change the season to autumn | ![]() |
| Original Image | Reference Image | Edit Type | Edit Instruction | Edited Image |
|---|---|---|---|---|
![]() | ![]() | Visual Bbox | Follow the given bounding box [v*] to remove the skis | ![]() |
![]() | ![]() | Visual Depth | Refer to the given depth image [v*] to remove umbrella | ![]() |
![]() | ![]() | Visual Material Transfer | Change the material of monument like linen | ![]() |
![]() | ![]() | Visual Reference | Replace the elephants to [v*] | ![]() |
![]() | ![]() | Visual Scribble | Refer to the given scribble [v*] to replace the toilet paper with a book | ![]() |
![]() | ![]() | Visual Segment | Follow the given segment image [v*] to remove truck | ![]() |
![]() | ![]() | Visual Sketch | Watch the given sketch [v*] to replace the bananas to apples | ![]() |
If you find this work useful for your research, please cite our paper and star our git repo:
@article{yu2024anyedit,
title={AnyEdit: Mastering Unified High-Quality Image Editing for Any Idea},
author={Yu, Qifan and Chow, Wei and Yue, Zhongqi and Pan, Kaihang and Wu, Yang and Wan, Xiaoyang and Li, Juncheng and Tang, Siliang and Zhang, Hanwang and Zhuang, Yueting},
journal={arXiv preprint arXiv:2411.15738},
year={2024}
}
29 commits
Jupyter Notebook
81.0%
Python
18.5%