Spaces:
Running
Running
Update utils.py
Browse files
utils.py
CHANGED
@@ -27,7 +27,7 @@ pipe = StableDiffusionImg2ImgPipeline.from_pretrained(
|
|
27 |
).to(DEVICE)
|
28 |
|
29 |
pipe.load_ip_adapter(
|
30 |
-
|
31 |
subfolder=".", # The weights file is directly in ADAPTER_DIR
|
32 |
weight_name="ip-adapter_sd15.bin"
|
33 |
# Optionally: subfolder="models" if using the repo, not a direct path
|
|
|
27 |
).to(DEVICE)
|
28 |
|
29 |
pipe.load_ip_adapter(
|
30 |
+
pretrained_model_name_or_path_or_dict=ADAPTER_DIR,
|
31 |
subfolder=".", # The weights file is directly in ADAPTER_DIR
|
32 |
weight_name="ip-adapter_sd15.bin"
|
33 |
# Optionally: subfolder="models" if using the repo, not a direct path
|