Skip to content

Commit

Permalink
UI/Web Reduce animation of default --progress_bars (#1613)
Browse files Browse the repository at this point in the history
  • Loading branch information
one-lithe-rune authored Jul 1, 2023
1 parent 534de05 commit 7392b22
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 6 deletions.
10 changes: 10 additions & 0 deletions apps/stable_diffusion/web/ui/css/sd_dark_theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,16 @@ footer {
display: none;
}

/* reduced animation load when generating */
.generating {
animation-play-state: paused !important;
}

/* better clarity when progress bars are minimal */
.meta-text {
background-color: var(--block-label-background-fill);
}

/* output gallery tab */
.output_parameters_dataframe tbody td {
font-size: small;
Expand Down
2 changes: 1 addition & 1 deletion apps/stable_diffusion/web/ui/img2img_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def create_canvas(w, h):
ondemand,
],
outputs=[img2img_gallery, std_output, img2img_status],
show_progress=args.progress_bar,
show_progress="minimal" if args.progress_bar else "none",
)

status_kwargs = dict(
Expand Down
2 changes: 1 addition & 1 deletion apps/stable_diffusion/web/ui/inpaint_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ def inpaint_api(
ondemand,
],
outputs=[inpaint_gallery, std_output, inpaint_status],
show_progress=args.progress_bar,
show_progress="minimal" if args.progress_bar else "none",
)
status_kwargs = dict(
fn=lambda bc, bs: status_label("Inpaint", 0, bc, bs),
Expand Down
2 changes: 1 addition & 1 deletion apps/stable_diffusion/web/ui/lora_train_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
),
],
outputs=[std_output],
show_progress=args.progress_bar,
show_progress="minimal" if args.progress_bar else "none",
)

prompt_submit = prompt.submit(**kwargs)
Expand Down
2 changes: 1 addition & 1 deletion apps/stable_diffusion/web/ui/outpaint_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ def outpaint_api(
ondemand,
],
outputs=[outpaint_gallery, std_output, outpaint_status],
show_progress=args.progress_bar,
show_progress="minimal" if args.progress_bar else "none",
)
status_kwargs = dict(
fn=lambda bc, bs: status_label("Outpaint", 0, bc, bs),
Expand Down
2 changes: 1 addition & 1 deletion apps/stable_diffusion/web/ui/txt2img_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ def txt2img_api(
ondemand,
],
outputs=[txt2img_gallery, std_output, txt2img_status],
show_progress=args.progress_bar,
show_progress="minimal" if args.progress_bar else "none",
)

status_kwargs = dict(
Expand Down
2 changes: 1 addition & 1 deletion apps/stable_diffusion/web/ui/upscaler_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def upscaler_api(
ondemand,
],
outputs=[upscaler_gallery, std_output, upscaler_status],
show_progress=args.progress_bar,
show_progress="minimal" if args.progress_bar else "none",
)
status_kwargs = dict(
fn=lambda bc, bs: status_label("Upscaler", 0, bc, bs),
Expand Down

0 comments on commit 7392b22

Please sign in to comment.