---
license: other
language:
- en
pipeline_tag: image-to-image
library_name: diffusers
---
# BrushEdit
### Overview
BrushEdit is an advanced, unified AI agent for image inpainting and editing.
Main Elements: 🛠️ Fully automated / 🤠 Interactive editing.
[
](https://liyaowei-stu.github.io/project/BrushEdit)
### Video
https://github.com/user-attachments/assets/fde82f21-8b36-4584-8460-c109c195e614
### Code
Please check our [GitHub repository](https://github.com/TencentARC/BrushEdit.git) for code.
### Model
Download the model checkpoint using `huggingface_hub` (Version 0.1 as example):
```python
import os
from huggingface_hub import snapshot_download
# download hf models
BrushEdit_path = "models/"
if not os.path.exists(BrushEdit_path):
BrushEdit_path = snapshot_download(
repo_id="TencentARC/BrushEdit",
local_dir=BrushEdit_path,
token=os.getenv("HF_TOKEN"),
)
```
The downloaded checkpoint file can be found at `BrushEdit_path`.
### Demo
You can [try the demo here](https://huggingface.co/spaces/TencentARC/BrushEdit).