dezzman commited on
Commit
4a7510e
·
verified ·
1 Parent(s): dcd37d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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['control_image'] = control_image
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(