Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -299,8 +299,10 @@ def infer(
|
|
299 |
generator = torch.Generator(device).manual_seed(seed)
|
300 |
|
301 |
# Преобразование изображений для IP-Adapter (размер 224x224)
|
302 |
-
ip_source_image = preprocess_image(ip_source_image, width, height, resize_to_224=True)
|
303 |
-
ip_adapter_image = preprocess_image(ip_adapter_image, width, height, resize_to_224=True)
|
|
|
|
|
304 |
|
305 |
pipe_ip_adapter = StableDiffusionControlNetPipeline.from_pretrained(
|
306 |
model_default,
|
|
|
299 |
generator = torch.Generator(device).manual_seed(seed)
|
300 |
|
301 |
# Преобразование изображений для IP-Adapter (размер 224x224)
|
302 |
+
# ip_source_image = preprocess_image(ip_source_image, width, height, resize_to_224=True)
|
303 |
+
# ip_adapter_image = preprocess_image(ip_adapter_image, width, height, resize_to_224=True)
|
304 |
+
ip_source_image = preprocess_image(ip_source_image, width, height)
|
305 |
+
ip_adapter_image = preprocess_image(ip_adapter_image, width, height)
|
306 |
|
307 |
pipe_ip_adapter = StableDiffusionControlNetPipeline.from_pretrained(
|
308 |
model_default,
|