Update README.md
Browse files
README.md
CHANGED
@@ -10,10 +10,10 @@ base_model:
|
|
10 |
|
11 |
# BlobCtrl
|
12 |
|
13 |
-
<a href=''><img src="https://img.shields.io/static/v1?label=Arxiv Preprint&message=BlobCtrl&color=red&logo=arxiv"></a>
|
14 |
<a href='https://liyaowei-stu.github.io/project/BlobCtrl/'><img src='https://img.shields.io/badge/Project-Page-green'></a>
|
15 |
-
<a href=''><img src='https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Demo-blue'></a>
|
16 |
-
<a href=''><img src='https://img.shields.io/badge/Github-Repo-blue'></a>
|
17 |
|
18 |
### Overview
|
19 |
|
@@ -23,11 +23,11 @@ Main Features: 🦉Element-level Add/Remove/Move/Replace/Enlarge/Shrink.
|
|
23 |
|
24 |
|
25 |
### Video
|
26 |
-
[Watch the introduction video](https://liyaowei-stu.github.io/project/BlobCtrl) in our project page or [YouTube]().
|
27 |
|
28 |
### Code
|
29 |
|
30 |
-
Please check our [GitHub repository]() for code.
|
31 |
|
32 |
|
33 |
|
@@ -39,14 +39,15 @@ Download the model checkpoint using `huggingface_hub` (Version 0.1 as example):
|
|
39 |
import os
|
40 |
from huggingface_hub import snapshot_download
|
41 |
|
42 |
-
# download
|
43 |
BlobCtrl_path = "examples/blobctrl/models"
|
44 |
-
if not os.path.exists(BlobCtrl_path):
|
45 |
-
|
46 |
repo_id="Yw22/BlobCtrl",
|
47 |
-
local_dir=
|
48 |
token=os.getenv("HF_TOKEN"),
|
49 |
)
|
|
|
50 |
```
|
51 |
|
52 |
The downloaded BlobCtrl checkpoint file (blobnet&unet_lora) can be found at `BlobCtrl_path`.
|
@@ -54,4 +55,4 @@ The downloaded BlobCtrl checkpoint file (blobnet&unet_lora) can be found at `Blo
|
|
54 |
|
55 |
|
56 |
### Demo
|
57 |
-
You can [try the demo here]().
|
|
|
10 |
|
11 |
# BlobCtrl
|
12 |
|
13 |
+
<a href='http://arxiv.org/abs/2503.13434'><img src="https://img.shields.io/static/v1?label=Arxiv Preprint&message=BlobCtrl&color=red&logo=arxiv"></a>
|
14 |
<a href='https://liyaowei-stu.github.io/project/BlobCtrl/'><img src='https://img.shields.io/badge/Project-Page-green'></a>
|
15 |
+
<a href='https://huggingface.co/spaces/Yw22/BlobCtrl'><img src='https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Demo-blue'></a>
|
16 |
+
<a href='https://github.com/TencentARC/BlobCtrl'><img src='https://img.shields.io/badge/Github-Repo-blue'></a>
|
17 |
|
18 |
### Overview
|
19 |
|
|
|
23 |
|
24 |
|
25 |
### Video
|
26 |
+
[Watch the introduction video](https://liyaowei-stu.github.io/project/BlobCtrl) in our project page or [YouTube](https://youtu.be/rdR4QRR-mbE).
|
27 |
|
28 |
### Code
|
29 |
|
30 |
+
Please check our [GitHub repository](https://github.com/TencentARC/BlobCtrl) for code.
|
31 |
|
32 |
|
33 |
|
|
|
39 |
import os
|
40 |
from huggingface_hub import snapshot_download
|
41 |
|
42 |
+
# download blobctrl models
|
43 |
BlobCtrl_path = "examples/blobctrl/models"
|
44 |
+
if not (os.path.exists(f"{BlobCtrl_path}/blobnet") and os.path.exists(f"{BlobCtrl_path}/unet_lora")):
|
45 |
+
BlobCtrl_path = snapshot_download(
|
46 |
repo_id="Yw22/BlobCtrl",
|
47 |
+
local_dir=BlobCtrl_path,
|
48 |
token=os.getenv("HF_TOKEN"),
|
49 |
)
|
50 |
+
print(f"BlobCtrl checkpoints downloaded to {BlobCtrl_path}") )
|
51 |
```
|
52 |
|
53 |
The downloaded BlobCtrl checkpoint file (blobnet&unet_lora) can be found at `BlobCtrl_path`.
|
|
|
55 |
|
56 |
|
57 |
### Demo
|
58 |
+
You can [try the demo here](https://huggingface.co/spaces/Yw22/BlobCtrl).
|