Skip to content

Commit

Permalink
Strip sdxl-turbo options
Browse files Browse the repository at this point in the history
  • Loading branch information
monorimet committed Jun 17, 2024
1 parent 83f424a commit 84bc143
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions apps/shark_studio/web/ui/sd.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
# "stabilityai/stable-diffusion-2-1-base",
# "stabilityai/stable-diffusion-2-1",
# "stabilityai/stable-diffusion-xl-base-1.0",
"stabilityai/sdxl-turbo",
#"stabilityai/sdxl-turbo",
]
sd_default_models.extend(get_checkpoints(model_type="scripts"))

Expand Down Expand Up @@ -402,6 +402,7 @@ def base_model_changed(base_model_id):
value=init_config["scheduler"],
choices=scheduler_model_map.keys(),
allow_custom_value=False,
visible=False,
)
with gr.Row():
steps = gr.Dropdown(
Expand All @@ -416,6 +417,7 @@ def base_model_changed(base_model_id):
value=4,
step=0.1,
label="\U0001F5C3\U0000FE0F CFG Scale",
visible=False,
)
with gr.Row():
batch_count = gr.Slider(
Expand All @@ -425,7 +427,7 @@ def base_model_changed(base_model_id):
step=1,
label="Batch Count",
interactive=True,
visible=True,
visible=False,
)
batch_size = gr.Slider(
1,
Expand All @@ -434,7 +436,7 @@ def base_model_changed(base_model_id):
step=1,
label="Batch Size",
interactive=False, # DEMO
visible=True,
visible=False,
)
compiled_pipeline = gr.Checkbox(
value=init_config["compiled_pipeline"],
Expand All @@ -451,13 +453,14 @@ def base_model_changed(base_model_id):
elem_classes=["fill"],
value=view_json_file(default_config_file),
)
with gr.Row():
with gr.Row(visible=False):
with gr.Row():
load_sd_config = gr.Dropdown(
label="Load Config",
value=cmd_opts.defaults,
choices=get_configs(),
allow_custom_value=True,
visible=False,
)
with gr.Row():
save_sd_config = gr.Button(
Expand Down

0 comments on commit 84bc143

Please sign in to comment.