Update app.py
Browse files
app.py
CHANGED
@@ -165,14 +165,14 @@ with gr.Blocks(theme=theme, css=css) as app:
|
|
165 |
with gr.Row():
|
166 |
with gr.Accordion("Advanced Settings", open=False):
|
167 |
negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="What should not be in the image", value="((visible hand:1.3), (ugly:1.3), (duplicate:1.2), (morbid:1.1), (mutilated:1.1), out of frame, bad face, extra fingers, mutated hands, (poorly drawn hands:1.1), (poorly drawn face:1.3), (mutation:1.3), (deformed:1.3), blurry, (bad anatomy:1.1), (bad proportions:1.2), (extra limbs:1.1), cloned face, (disfigured:1.2), gross proportions, malformed limbs, (missing arms:1.1), (missing legs:1.1), (extra arms:1.2), (extra legs:1.2), fused fingers, too many fingers, (long neck:1.2), sketched by bad-artist, (bad-image-v2-39000:1.3)", lines=5, elem_id="negative-prompt-text-input")
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
|
177 |
# Add a button to trigger the image generation
|
178 |
with gr.Row():
|
|
|
165 |
with gr.Row():
|
166 |
with gr.Accordion("Advanced Settings", open=False):
|
167 |
negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="What should not be in the image", value="((visible hand:1.3), (ugly:1.3), (duplicate:1.2), (morbid:1.1), (mutilated:1.1), out of frame, bad face, extra fingers, mutated hands, (poorly drawn hands:1.1), (poorly drawn face:1.3), (mutation:1.3), (deformed:1.3), blurry, (bad anatomy:1.1), (bad proportions:1.2), (extra limbs:1.1), cloned face, (disfigured:1.2), gross proportions, malformed limbs, (missing arms:1.1), (missing legs:1.1), (extra arms:1.2), (extra legs:1.2), fused fingers, too many fingers, (long neck:1.2), sketched by bad-artist, (bad-image-v2-39000:1.3)", lines=5, elem_id="negative-prompt-text-input")
|
168 |
+
with gr.Row():
|
169 |
+
width = gr.Slider(label="ImageWidth", value=896, minimum=64, maximum=1216, step=32)
|
170 |
+
height = gr.Slider(label="Image Height", value=1152, minimum=64, maximum=1216, step=32)
|
171 |
+
steps = gr.Slider(label="Sampling steps", value=50, minimum=1, maximum=100, step=1)
|
172 |
+
cfg = gr.Slider(label="CFG Scale", value=3.5, minimum=1, maximum=20, step=1)
|
173 |
+
strength = gr.Slider(label="PromptStrength", value=100, minimum=0, maximum=100, step=1)
|
174 |
+
seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1) # Setting the seed to -1 will make it random
|
175 |
+
method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "DEIS", "LMS", "DPM Adaptive", "DPM++ 2M", "DPM2 Ancestral", "DPM++ S", "DPM++ SDE", "DDPM", "DPM Fast", "dpmpp_2s_ancestral", "Euler", "Euler CFG PP", "Euler a", "Euler Ancestral", "Euler+beta", "Heun", "Heun PP2", "DDIM", "PLMS", "UniPC", "UniPC BH2"])
|
176 |
|
177 |
# Add a button to trigger the image generation
|
178 |
with gr.Row():
|