Spaces:
Starting
on
T4
Starting
on
T4
modify the interface setting.
Browse files
app.py
CHANGED
|
@@ -110,7 +110,7 @@ def load_ckpt(model_ckpt = "LAION-Glyph-10M-Epoch-5"):
|
|
| 110 |
allow_run_generation = False
|
| 111 |
return output_str, None, allow_run_generation
|
| 112 |
|
| 113 |
-
SAVE_MEMORY = False
|
| 114 |
disable_verbosity()
|
| 115 |
if SAVE_MEMORY:
|
| 116 |
enable_sliced_attention()
|
|
@@ -173,7 +173,7 @@ with block:
|
|
| 173 |
|
| 174 |
with gr.Accordion("Shared Advanced Options", open=False):
|
| 175 |
with gr.Row():
|
| 176 |
-
shared_num_samples = gr.Slider(label="Images", minimum=1, maximum=12, value=
|
| 177 |
shared_image_resolution = gr.Slider(label="Image Resolution", minimum=256, maximum=768, value=512, step=64, visible=False)
|
| 178 |
shared_strength = gr.Slider(label="Control Strength", minimum=0.0, maximum=2.0, value=1.0, step=0.01, visible=False)
|
| 179 |
shared_guess_mode = gr.Checkbox(label='Guess Mode', value=False, visible=False)
|
|
|
|
| 110 |
allow_run_generation = False
|
| 111 |
return output_str, None, allow_run_generation
|
| 112 |
|
| 113 |
+
SAVE_MEMORY = True #False
|
| 114 |
disable_verbosity()
|
| 115 |
if SAVE_MEMORY:
|
| 116 |
enable_sliced_attention()
|
|
|
|
| 173 |
|
| 174 |
with gr.Accordion("Shared Advanced Options", open=False):
|
| 175 |
with gr.Row():
|
| 176 |
+
shared_num_samples = gr.Slider(label="Images", minimum=1, maximum=12, value=5, step=1)
|
| 177 |
shared_image_resolution = gr.Slider(label="Image Resolution", minimum=256, maximum=768, value=512, step=64, visible=False)
|
| 178 |
shared_strength = gr.Slider(label="Control Strength", minimum=0.0, maximum=2.0, value=1.0, step=0.01, visible=False)
|
| 179 |
shared_guess_mode = gr.Checkbox(label='Guess Mode', value=False, visible=False)
|