Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -195,7 +195,7 @@ def infer(
|
|
195 |
height=height,
|
196 |
num_inference_steps=num_inference_steps,
|
197 |
guidance_scale=guidance_scale,
|
198 |
-
controlnet_conditioning_scale=
|
199 |
generator=generator,
|
200 |
).images[0]
|
201 |
else:
|
@@ -283,7 +283,7 @@ def infer(
|
|
283 |
height=height,
|
284 |
num_inference_steps=num_inference_steps,
|
285 |
guidance_scale=guidance_scale,
|
286 |
-
controlnet_conditioning_scale=
|
287 |
generator=generator,
|
288 |
).images[0]
|
289 |
else:
|
@@ -320,7 +320,7 @@ def infer(
|
|
320 |
num_inference_steps=num_inference_steps,
|
321 |
strength=strength_ip,
|
322 |
guidance_scale=guidance_scale,
|
323 |
-
controlnet_conditioning_scale=
|
324 |
generator=generator,
|
325 |
).images[0]
|
326 |
else:
|
@@ -676,6 +676,14 @@ with gr.Blocks(css=css) as demo:
|
|
676 |
step=0.01,
|
677 |
)
|
678 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
679 |
ip_adapter_mode = gr.Dropdown(
|
680 |
label="Ip_Adapter Mode",
|
681 |
choices=[
|
|
|
195 |
height=height,
|
196 |
num_inference_steps=num_inference_steps,
|
197 |
guidance_scale=guidance_scale,
|
198 |
+
controlnet_conditioning_scale=controlnet_conditioning_scale,
|
199 |
generator=generator,
|
200 |
).images[0]
|
201 |
else:
|
|
|
283 |
height=height,
|
284 |
num_inference_steps=num_inference_steps,
|
285 |
guidance_scale=guidance_scale,
|
286 |
+
controlnet_conditioning_scale=controlnet_conditioning_scale,
|
287 |
generator=generator,
|
288 |
).images[0]
|
289 |
else:
|
|
|
320 |
num_inference_steps=num_inference_steps,
|
321 |
strength=strength_ip,
|
322 |
guidance_scale=guidance_scale,
|
323 |
+
controlnet_conditioning_scale=controlnet_conditioning_scale,
|
324 |
generator=generator,
|
325 |
).images[0]
|
326 |
else:
|
|
|
676 |
step=0.01,
|
677 |
)
|
678 |
|
679 |
+
controlnet_conditioning_scale = gr.Slider(
|
680 |
+
label="Controlnet conditioning scale",
|
681 |
+
minimum=0.0,
|
682 |
+
maximum=1.0,
|
683 |
+
value=0.5,
|
684 |
+
step=0.01,
|
685 |
+
)
|
686 |
+
|
687 |
ip_adapter_mode = gr.Dropdown(
|
688 |
label="Ip_Adapter Mode",
|
689 |
choices=[
|