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
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pipeline_tag: image-to-image
|
| 6 |
+
library_name: diffusers
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
# SmartFreeEdit: Mask-Free Spatial-Aware Image Editing with Complex Instruction Understanding
|
| 13 |
+
|
| 14 |
+
[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>
|
| 15 |
+
|
| 16 |
+
<sup>1</sup> The University of Hongkong, <sup>2</sup> Institute of Artificial Intelligence (TeleAI)
|
| 17 |
+
|
| 18 |
+
<a href='https://smartfreeedit.github.io/'><img src='https://img.shields.io/badge/Project-Page-Green'></a>
|
| 19 |
+
[](https://arxiv.org/abs/2504.12704)
|
| 20 |
+
[](https://huggingface.co/SUNQ111/SmartFreeEdit/tree/main)
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
### Code
|
| 26 |
+
|
| 27 |
+
Please check our [GitHub repository](https://github.com/smileformylove/SmartFreeEdit) for code.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
### Demo
|
| 32 |
+
[Try the demo here](https://huggingface.co/spaces/SUNQ111/SmartFreeEdit).
|