disable scale
Browse files
app.py
CHANGED
@@ -172,7 +172,7 @@ GPU Time Comparison: T4: ~276s - A10G: ~113.6s A100: ~43.5s RTX 4090: ~48.1s
|
|
172 |
value=2,
|
173 |
step=1,
|
174 |
label="x Scale",
|
175 |
-
interactive=
|
176 |
)
|
177 |
cosine_scale_1 = gr.Slider(
|
178 |
minimum=0,
|
@@ -214,6 +214,18 @@ GPU Time Comparison: T4: ~276s - A10G: ~113.6s A100: ~43.5s RTX 4090: ~48.1s
|
|
214 |
with gr.Column(scale=2):
|
215 |
image_slider = ImageSlider(position=0.5)
|
216 |
files = gr.Files()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
inputs = [
|
218 |
image_input,
|
219 |
prompt,
|
@@ -224,9 +236,7 @@ GPU Time Comparison: T4: ~276s - A10G: ~113.6s A100: ~43.5s RTX 4090: ~48.1s
|
|
224 |
cosine_scale_2,
|
225 |
cosine_scale_3,
|
226 |
sigma,
|
227 |
-
scale,
|
228 |
]
|
229 |
-
# inputs = [image_input, prompt, negative_prompt, seed]
|
230 |
outputs = [image_slider, files]
|
231 |
btn.click(predict, inputs=inputs, outputs=outputs, concurrency_limit=1)
|
232 |
gr.Examples(
|
|
|
172 |
value=2,
|
173 |
step=1,
|
174 |
label="x Scale",
|
175 |
+
interactive=False,
|
176 |
)
|
177 |
cosine_scale_1 = gr.Slider(
|
178 |
minimum=0,
|
|
|
214 |
with gr.Column(scale=2):
|
215 |
image_slider = ImageSlider(position=0.5)
|
216 |
files = gr.Files()
|
217 |
+
# inputs = [
|
218 |
+
# image_input,
|
219 |
+
# prompt,
|
220 |
+
# negative_prompt,
|
221 |
+
# seed,
|
222 |
+
# guidance_scale,
|
223 |
+
# cosine_scale_1,
|
224 |
+
# cosine_scale_2,
|
225 |
+
# cosine_scale_3,
|
226 |
+
# sigma,
|
227 |
+
# scale,
|
228 |
+
# ]
|
229 |
inputs = [
|
230 |
image_input,
|
231 |
prompt,
|
|
|
236 |
cosine_scale_2,
|
237 |
cosine_scale_3,
|
238 |
sigma,
|
|
|
239 |
]
|
|
|
240 |
outputs = [image_slider, files]
|
241 |
btn.click(predict, inputs=inputs, outputs=outputs, concurrency_limit=1)
|
242 |
gr.Examples(
|