Abhi5ingh commited on
Commit
bdbab61
·
1 Parent(s): de651c2

Update sdfile.py

Browse files
Files changed (1) hide show
  1. sdfile.py +2 -2
sdfile.py CHANGED
@@ -66,8 +66,8 @@ def generate(
66
  )
67
  print("kwargs",kwargs)
68
 
69
- if pipeline_name =="sketch2img" and sketch_pil:
70
- kwargs.update(image=sketch_pil,controlnet_conditioning_scale=controlnet_conditioning_scale)
71
  elif pipeline_name == "txt2img":
72
  kwargs.update(width = width, height = height)
73
  else:
 
66
  )
67
  print("kwargs",kwargs)
68
 
69
+ if pipeline_name =="sketch2img" and image:
70
+ kwargs.update(image=image,controlnet_conditioning_scale=controlnet_conditioning_scale)
71
  elif pipeline_name == "txt2img":
72
  kwargs.update(width = width, height = height)
73
  else: