Spaces:
Runtime error
Runtime error
separate both guiding scales
Browse files
app.py
CHANGED
@@ -38,6 +38,7 @@ def inference_map(
|
|
38 |
negative_prompt: str,
|
39 |
guidance_scale: float,
|
40 |
controlnet_conditioning_scale_0: float,
|
|
|
41 |
seed: int,
|
42 |
controlnet_start_0: float,
|
43 |
controlnet_start_1: float,
|
@@ -55,7 +56,7 @@ def inference_map(
|
|
55 |
prompt,
|
56 |
negative_prompt,
|
57 |
guidance_scale,
|
58 |
-
(controlnet_conditioning_scale_0,
|
59 |
seed,
|
60 |
(controlnet_start_0, controlnet_start_1),
|
61 |
(controlnet_end_0, controlnet_end_1),
|
@@ -139,13 +140,20 @@ with gr.Blocks() as blocks:
|
|
139 |
label="Params: The generated QR Code functionality is largely influenced by the parameters detailed below",
|
140 |
open=True,
|
141 |
):
|
142 |
-
|
143 |
minimum=0.5,
|
144 |
maximum=2.5,
|
145 |
step=0.01,
|
146 |
value=1.5,
|
147 |
label="Controlnet Conditioning Scale",
|
148 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
guidance_scale = gr.Slider(
|
150 |
minimum=0.0,
|
151 |
maximum=25.0,
|
@@ -238,7 +246,8 @@ with gr.Blocks() as blocks:
|
|
238 |
prompt,
|
239 |
negative_prompt,
|
240 |
guidance_scale,
|
241 |
-
|
|
|
242 |
seed,
|
243 |
controlnet_start_0,
|
244 |
controlnet_start_1,
|
|
|
38 |
negative_prompt: str,
|
39 |
guidance_scale: float,
|
40 |
controlnet_conditioning_scale_0: float,
|
41 |
+
controlnet_conditioning_scale_1: float,
|
42 |
seed: int,
|
43 |
controlnet_start_0: float,
|
44 |
controlnet_start_1: float,
|
|
|
56 |
prompt,
|
57 |
negative_prompt,
|
58 |
guidance_scale,
|
59 |
+
(controlnet_conditioning_scale_0, controlnet_conditioning_scale_1),
|
60 |
seed,
|
61 |
(controlnet_start_0, controlnet_start_1),
|
62 |
(controlnet_end_0, controlnet_end_1),
|
|
|
140 |
label="Params: The generated QR Code functionality is largely influenced by the parameters detailed below",
|
141 |
open=True,
|
142 |
):
|
143 |
+
controlnet_conditioning_scale_0 = gr.Slider(
|
144 |
minimum=0.5,
|
145 |
maximum=2.5,
|
146 |
step=0.01,
|
147 |
value=1.5,
|
148 |
label="Controlnet Conditioning Scale",
|
149 |
)
|
150 |
+
controlnet_conditioning_scale_1 = gr.Slider(
|
151 |
+
minimum=0.5,
|
152 |
+
maximum=2.5,
|
153 |
+
step=0.01,
|
154 |
+
value=1.0,
|
155 |
+
label="Controlnet Conditioning Scale (corners)",
|
156 |
+
)
|
157 |
guidance_scale = gr.Slider(
|
158 |
minimum=0.0,
|
159 |
maximum=25.0,
|
|
|
246 |
prompt,
|
247 |
negative_prompt,
|
248 |
guidance_scale,
|
249 |
+
controlnet_conditioning_scale_0,
|
250 |
+
controlnet_conditioning_scale_1,
|
251 |
seed,
|
252 |
controlnet_start_0,
|
253 |
controlnet_start_1,
|