Lifeinhockey commited on
Commit
62ccd4d
·
verified ·
1 Parent(s): ccce1ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -122,7 +122,7 @@ def infer(
122
  ):
123
 
124
  # Генерация изображений с Ip_Adapter ------------------------------------------------------------------------------------------------------------------
125
- if use_ip_adapter: and ip_source_image is not None and ip_adapter_image is not None:
126
 
127
  if ip_adapter_mode == "pose_estimation":
128
 
@@ -314,7 +314,7 @@ def infer(
314
  else:
315
  # Генерация изображений с ControlNet ----------------------------------------------------------------------------------------------------------------
316
 
317
- if use_control_net: and control_image is not None and cn_source_image is not None:
318
 
319
  if control_mode == "pose_estimation":
320
 
 
122
  ):
123
 
124
  # Генерация изображений с Ip_Adapter ------------------------------------------------------------------------------------------------------------------
125
+ if use_ip_adapter and ip_source_image is not None and ip_adapter_image is not None:
126
 
127
  if ip_adapter_mode == "pose_estimation":
128
 
 
314
  else:
315
  # Генерация изображений с ControlNet ----------------------------------------------------------------------------------------------------------------
316
 
317
+ if use_control_net and control_image is not None and cn_source_image is not None:
318
 
319
  if control_mode == "pose_estimation":
320