Update sdfile.py
Browse files
sdfile.py
CHANGED
@@ -66,8 +66,8 @@ def generate(
|
|
66 |
)
|
67 |
print("kwargs",kwargs)
|
68 |
|
69 |
-
if pipeline_name =="sketch2img" and
|
70 |
-
kwargs.update(image=
|
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:
|