Lifeinhockey commited on
Commit
069e0a3
·
verified ·
1 Parent(s): 0b9adc4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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,