Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -201,10 +201,9 @@ def infer(
|
|
| 201 |
params['controlnet_conditioning_scale'] = cn_strength
|
| 202 |
if cn_mode == 'edge_detection':
|
| 203 |
control_image = map_edge_detection(cn_image)
|
| 204 |
-
print(type(control_image))
|
| 205 |
elif cn_mode == 'scribble':
|
| 206 |
control_image = map_scribble(cn_image)
|
| 207 |
-
params['
|
| 208 |
|
| 209 |
if ip_enable:
|
| 210 |
pipe.load_ip_adapter(
|
|
|
|
| 201 |
params['controlnet_conditioning_scale'] = cn_strength
|
| 202 |
if cn_mode == 'edge_detection':
|
| 203 |
control_image = map_edge_detection(cn_image)
|
|
|
|
| 204 |
elif cn_mode == 'scribble':
|
| 205 |
control_image = map_scribble(cn_image)
|
| 206 |
+
params['image'] = control_image
|
| 207 |
|
| 208 |
if ip_enable:
|
| 209 |
pipe.load_ip_adapter(
|