Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -82,8 +82,8 @@ def infer_ip_adapter(model, prompt, image, scale, negative_prompt, seed, randomi
|
|
82 |
|
83 |
pipe = StableDiffusionPipeline.from_pretrained(all_model_id[model], torch_dtype=torch_dtype)
|
84 |
pipe = pipe.to(device)
|
85 |
-
|
86 |
-
|
87 |
linfusion = LinFusion.construct_for(pipe)
|
88 |
|
89 |
image = pipe(
|
|
|
82 |
|
83 |
pipe = StableDiffusionPipeline.from_pretrained(all_model_id[model], torch_dtype=torch_dtype)
|
84 |
pipe = pipe.to(device)
|
85 |
+
pipe.load_ip_adapter("h94/IP-Adapter", subfolder="models", weight_name="ip-adapter-plus_sd15.bin")
|
86 |
+
pipe.set_ip_adapter_scale(scale)
|
87 |
linfusion = LinFusion.construct_for(pipe)
|
88 |
|
89 |
image = pipe(
|