Commit
•
4bacbb7
1
Parent(s):
7f31109
Update app.py
Browse files
app.py
CHANGED
@@ -66,6 +66,8 @@ def infer(prompt, ip_adapter_image, negative_prompt="", seed=42, randomize_seed=
|
|
66 |
|
67 |
generator = torch.Generator(device="cuda").manual_seed(seed)
|
68 |
pipe = pipe.to("cuda")
|
|
|
|
|
69 |
pipe.set_ip_adapter_scale([ip_adapter_scale])
|
70 |
|
71 |
image = pipe(
|
|
|
66 |
|
67 |
generator = torch.Generator(device="cuda").manual_seed(seed)
|
68 |
pipe = pipe.to("cuda")
|
69 |
+
image_encoder = image_encoder.to("cuda")
|
70 |
+
pipe.image_encoder = image_encoder
|
71 |
pipe.set_ip_adapter_scale([ip_adapter_scale])
|
72 |
|
73 |
image = pipe(
|