Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def predict(prompt, ip_adapter_image, ip_adapter_scale=0.5, negative_prompt="",
|
|
22 |
seed = random.randint(0, MAX_SEED)
|
23 |
|
24 |
if not center_crop:
|
25 |
-
ip_adapter_image.resize((224,224))
|
26 |
|
27 |
generator = torch.Generator(device="cuda").manual_seed(seed)
|
28 |
pipe.set_ip_adapter_scale([ip_adapter_scale])
|
|
|
22 |
seed = random.randint(0, MAX_SEED)
|
23 |
|
24 |
if not center_crop:
|
25 |
+
ip_adapter_image = ip_adapter_image.resize((224,224))
|
26 |
|
27 |
generator = torch.Generator(device="cuda").manual_seed(seed)
|
28 |
pipe.set_ip_adapter_scale([ip_adapter_scale])
|