Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -166,11 +166,11 @@ def infer(cond_in, image_in, prompt, inference_steps, guidance_scale, control_mo
|
|
166 |
|
167 |
image = pipe(
|
168 |
prompt,
|
169 |
-
control_image=
|
170 |
-
control_mode=
|
171 |
width=width,
|
172 |
height=height,
|
173 |
-
controlnet_conditioning_scale=
|
174 |
num_inference_steps=inference_steps,
|
175 |
guidance_scale=guidance_scale,
|
176 |
generator=torch.manual_seed(seed),
|
|
|
166 |
|
167 |
image = pipe(
|
168 |
prompt,
|
169 |
+
control_image=control_image,
|
170 |
+
control_mode=control_mode_num,
|
171 |
width=width,
|
172 |
height=height,
|
173 |
+
controlnet_conditioning_scale=control_strength,
|
174 |
num_inference_steps=inference_steps,
|
175 |
guidance_scale=guidance_scale,
|
176 |
generator=torch.manual_seed(seed),
|