Skip to content

Commit 2daf6c1

Browse files
support lcm and multicontrol
1 parent d77c5ba commit 2daf6c1

16 files changed

+2056
-76
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,5 @@ models/
164164

165165
# Cog
166166
.cog
167+
168+
gradio_cached_examples

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
<sup>*</sup>corresponding authors
99

10-
{haofanwang.ai, wangqixun.ai}@gmail.com
11-
1210
<a href='https://instantid.github.io/'><img src='https://img.shields.io/badge/Project-Page-green'></a>
1311
<a href='https://arxiv.org/abs/2401.07519'><img src='https://img.shields.io/badge/Technique-Report-red'></a>
1412
<a href='https://huggingface.co/papers/2401.07519'><img src='https://img.shields.io/static/v1?label=Paper&message=Huggingface&color=orange'></a>
@@ -71,6 +69,13 @@ hf_hub_download(repo_id="InstantX/InstantID", filename="ControlNetModel/diffusio
7169
hf_hub_download(repo_id="InstantX/InstantID", filename="ip-adapter.bin", local_dir="./checkpoints")
7270
```
7371

72+
Or run the following command to download all models:
73+
74+
```python
75+
pip install -r gradio_demo/requirements.txt
76+
python gradio_demo/download_models.py
77+
```
78+
7479
If you cannot access to Huggingface, you can use [hf-mirror](https://hf-mirror.com/) to download models.
7580
```python
7681
export HF_ENDPOINT=https://hf-mirror.com
@@ -183,6 +188,11 @@ Run the following command:
183188
python gradio_demo/app.py
184189
```
185190

191+
or MultiControlNet version:
192+
```python
193+
gradio_demo/app-multicontrolnet.py
194+
```
195+
186196
## Usage Tips
187197
- For higher similarity, increase the weight of controlnet_conditioning_scale (IdentityNet) and ip_adapter_scale (Adapter).
188198
- For over-saturation, decrease the ip_adapter_scale. If not work, decrease controlnet_conditioning_scale.

docs/.DS_Store

-6 KB
Binary file not shown.

examples/poses/pose.jpg

102 KB
Loading

examples/poses/pose2.jpg

94.9 KB
Loading

examples/poses/pose3.jpg

103 KB
Loading

examples/poses/pose4.jpg

82.1 KB
Loading

0 commit comments

Comments
 (0)