Spaces:
Running
on
Zero
Running
on
Zero
lixiang46
commited on
Commit
•
d72888b
1
Parent(s):
a1bb479
debug
Browse files
app.py
CHANGED
@@ -62,10 +62,9 @@ pipe_canny = StableDiffusionXLControlNetImg2ImgPipeline(
|
|
62 |
force_zeros_for_empty_prompt=False
|
63 |
)
|
64 |
|
65 |
-
for pipe in [pipe_depth
|
66 |
if hasattr(pipe.unet, 'encoder_hid_proj'):
|
67 |
pipe.unet.text_encoder_hid_proj = pipe.unet.encoder_hid_proj
|
68 |
-
|
69 |
pipe.load_ip_adapter(f'{ckpt_dir_ipa}' , subfolder="", weight_name=["ip_adapter_plus_general.bin"])
|
70 |
|
71 |
@spaces.GPU
|
|
|
62 |
force_zeros_for_empty_prompt=False
|
63 |
)
|
64 |
|
65 |
+
for pipe in [pipe_depth]:
|
66 |
if hasattr(pipe.unet, 'encoder_hid_proj'):
|
67 |
pipe.unet.text_encoder_hid_proj = pipe.unet.encoder_hid_proj
|
|
|
68 |
pipe.load_ip_adapter(f'{ckpt_dir_ipa}' , subfolder="", weight_name=["ip_adapter_plus_general.bin"])
|
69 |
|
70 |
@spaces.GPU
|