Spaces:
Runtime error
Runtime error
ResearcherXman
commited on
Commit
•
3fe4825
1
Parent(s):
a1001d0
update
Browse files
app.py
CHANGED
@@ -129,13 +129,14 @@ pipe.scheduler = diffusers.EulerDiscreteScheduler.from_config(
|
|
129 |
pipe.scheduler.config
|
130 |
)
|
131 |
|
|
|
|
|
|
|
|
|
132 |
pipe.cuda()
|
133 |
pipe.load_ip_adapter_instantid(face_adapter)
|
134 |
pipe.image_proj_model.to("cuda")
|
135 |
pipe.unet.to("cuda")
|
136 |
-
# load and disable LCM
|
137 |
-
pipe.load_lora_weights("latent-consistency/lcm-lora-sdxl")
|
138 |
-
pipe.disable_lora()
|
139 |
|
140 |
def toggle_lcm_ui(value):
|
141 |
if value:
|
@@ -425,10 +426,10 @@ article = r"""
|
|
425 |
If our work is helpful for your research or applications, please cite us via:
|
426 |
```bibtex
|
427 |
@article{wang2024instantid,
|
428 |
-
title={InstantID: Zero-shot Identity-Preserving Generation in Seconds},
|
429 |
-
author={Wang, Qixun and Bai, Xu and Wang, Haofan and Qin, Zekui and Chen, Anthony},
|
430 |
-
journal={arXiv preprint arXiv:2401.07519},
|
431 |
-
year={2024}
|
432 |
}
|
433 |
```
|
434 |
📧 **Contact**
|
|
|
129 |
pipe.scheduler.config
|
130 |
)
|
131 |
|
132 |
+
# load and disable LCM
|
133 |
+
pipe.load_lora_weights("latent-consistency/lcm-lora-sdxl")
|
134 |
+
pipe.disable_lora()
|
135 |
+
|
136 |
pipe.cuda()
|
137 |
pipe.load_ip_adapter_instantid(face_adapter)
|
138 |
pipe.image_proj_model.to("cuda")
|
139 |
pipe.unet.to("cuda")
|
|
|
|
|
|
|
140 |
|
141 |
def toggle_lcm_ui(value):
|
142 |
if value:
|
|
|
426 |
If our work is helpful for your research or applications, please cite us via:
|
427 |
```bibtex
|
428 |
@article{wang2024instantid,
|
429 |
+
title={InstantID: Zero-shot Identity-Preserving Generation in Seconds},
|
430 |
+
author={Wang, Qixun and Bai, Xu and Wang, Haofan and Qin, Zekui and Chen, Anthony},
|
431 |
+
journal={arXiv preprint arXiv:2401.07519},
|
432 |
+
year={2024}
|
433 |
}
|
434 |
```
|
435 |
📧 **Contact**
|