Instructions to use SUNQ111/SmartFreeEdit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use SUNQ111/SmartFreeEdit with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("SUNQ111/SmartFreeEdit", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
| license: other | |
| language: | |
| - en | |
| pipeline_tag: image-to-image | |
| library_name: diffusers | |
| # SmartFreeEdit: Mask-Free Spatial-Aware Image Editing with Complex Instruction Understanding | |
| [Qianqian Sun](https://github.com/Decemberease)<sup>1*</sup>, [Jixiang Luo](https://github.com/smileformylove)<sup>2†</sup>, Dell Zhang<sup>2</sup>, Xuelong Li<sup>2</sup> | |
| <sup>1</sup> The University of Hongkong, <sup>2</sup> Institute of Artificial Intelligence (TeleAI) | |
| <a href='https://smartfreeedit.github.io/'><img src='https://img.shields.io/badge/Project-Page-Green'></a> | |
| [](https://arxiv.org/abs/2504.12704) | |
| [](https://huggingface.co/SUNQ111/SmartFreeEdit/tree/main) | |
| ### Code | |
| Please check our [GitHub repository](https://github.com/smileformylove/SmartFreeEdit) for code. | |
| ### Demo | |
| [Try the demo here](https://huggingface.co/spaces/SUNQ111/SmartFreeEdit). |