Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -122,7 +122,7 @@ def infer(
|
|
122 |
):
|
123 |
|
124 |
# Генерация изображений с Ip_Adapter ------------------------------------------------------------------------------------------------------------------
|
125 |
-
if use_ip_adapter
|
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
|
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 |
|