Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -350,31 +350,31 @@ def app_gradio():
|
|
350 |
'<center><span style="color: #FF0000">!!! Click only Once, Wait for Delay !!!</span></center>'
|
351 |
)
|
352 |
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
num_inference_steps = 50
|
375 |
-
guidance_scale = 2.5
|
376 |
-
seed = 42
|
377 |
-
show_type = "result only"
|
378 |
|
379 |
with gr.Column(scale=2, min_width=500):
|
380 |
result_image = gr.Image(interactive=False, label="Result")
|
|
|
350 |
'<center><span style="color: #FF0000">!!! Click only Once, Wait for Delay !!!</span></center>'
|
351 |
)
|
352 |
|
353 |
+
gr.Markdown(
|
354 |
+
'<span style="color: #808080; font-size: small;">Advanced options can adjust details:<br>1. `Inference Step` may enhance details;<br>2. `CFG` is highly correlated with saturation;<br>3. `Random seed` may improve pseudo-shadow.</span>'
|
355 |
+
)
|
356 |
+
with gr.Accordion("Advanced Options", open=False):
|
357 |
+
num_inference_steps = gr.Slider(
|
358 |
+
label="Inference Step", minimum=10, maximum=100, step=5, value=50
|
359 |
+
)
|
360 |
+
# Guidence Scale
|
361 |
+
guidance_scale = gr.Slider(
|
362 |
+
label="CFG Strenth", minimum=0.0, maximum=7.5, step=0.5, value=2.5
|
363 |
+
)
|
364 |
+
# Random Seed
|
365 |
+
seed = gr.Slider(
|
366 |
+
label="Seed", minimum=-1, maximum=10000, step=1, value=42
|
367 |
+
)
|
368 |
+
show_type = gr.Radio(
|
369 |
+
label="Show Type",
|
370 |
+
choices=["result only", "input & result", "input & mask & result"],
|
371 |
+
value="input & mask & result",
|
372 |
+
)
|
373 |
+
|
374 |
+
# num_inference_steps = 50
|
375 |
+
# guidance_scale = 2.5
|
376 |
+
# seed = 42
|
377 |
+
# show_type = "result only"
|
378 |
|
379 |
with gr.Column(scale=2, min_width=500):
|
380 |
result_image = gr.Image(interactive=False, label="Result")
|