Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,56 @@
|
|
| 1 |
-
---
|
| 2 |
-
license:
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pipeline_tag: image-to-image
|
| 6 |
+
library_name: diffusers
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
# BrushEdit
|
| 10 |
+
|
| 11 |
+
<a href="https://arxiv.org/abs/2412.10316"><img src="https://img.shields.io/static/v1?label=Arxiv Preprint&message=BrushEdit&color=red&logo=arxiv"></a>
|
| 12 |
+
<a href='https://liyaowei-stu.github.io/project/BrushEdit/'><img src='https://img.shields.io/badge/Project-Page-green'></a>
|
| 13 |
+
<a href='https://huggingface.co/spaces/TencentARC/BrushEdit'><img src='https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Demo-blue'></a>
|
| 14 |
+
<a href='https://github.com/TencentARC/BrushEdit.git'><img src='https://img.shields.io/badge/Github-Repo-blue'></a>
|
| 15 |
+
|
| 16 |
+
### Overview
|
| 17 |
+
|
| 18 |
+
BrushEdit is an advanced, unified AI agent for image inpainting and editing.
|
| 19 |
+
Main Elements: 🛠️ Fully automated / 🤠 Interactive editing.
|
| 20 |
+
[<img src="https://github.com/user-attachments/assets/c8a23ee0-712b-4f68-a806-55008b5b381d" width="600">](https://liyaowei-stu.github.io/project/BrushEdit)
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
### Video
|
| 24 |
+
|
| 25 |
+
https://github.com/user-attachments/assets/fde82f21-8b36-4584-8460-c109c195e614
|
| 26 |
+
|
| 27 |
+
### Code
|
| 28 |
+
|
| 29 |
+
Please check our [GitHub repository](https://github.com/TencentARC/BrushEdit.git) for code.
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
### Model
|
| 34 |
+
|
| 35 |
+
Download the model checkpoint using `huggingface_hub` (Version 0.1 as example):
|
| 36 |
+
|
| 37 |
+
```python
|
| 38 |
+
import os
|
| 39 |
+
from huggingface_hub import snapshot_download
|
| 40 |
+
|
| 41 |
+
# download hf models
|
| 42 |
+
BrushEdit_path = "models/"
|
| 43 |
+
if not os.path.exists(BrushEdit_path):
|
| 44 |
+
BrushEdit_path = snapshot_download(
|
| 45 |
+
repo_id="TencentARC/BrushEdit",
|
| 46 |
+
local_dir=BrushEdit_path,
|
| 47 |
+
token=os.getenv("HF_TOKEN"),
|
| 48 |
+
)
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
The downloaded checkpoint file can be found at `BrushEdit_path`.
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
### Demo
|
| 56 |
+
You can [try the demo here](https://huggingface.co/spaces/TencentARC/BrushEdit).
|