Skip to content

Commit

Permalink
Merge branch 'sd-webui:dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroCool940711 authored Oct 14, 2022
2 parents 8d2cf46 + 0df6993 commit a1763c3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
11 changes: 0 additions & 11 deletions .idea/.gitignore

This file was deleted.

8 changes: 8 additions & 0 deletions frontend/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,11 @@ input[type=number]:disabled { -moz-appearance: textfield; }
/* fix buttons layouts */

}

/* Gradio 3.4 FIXES */
#prompt_row button {
max-width: 20ch;
}
#text2img_col2 {
flex-grow: 2 !important;
}
4 changes: 2 additions & 2 deletions frontend/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def draw_gradio_ui(opt, img2img=lambda x: x, txt2img=lambda x: x, imgproc=lambda

txt2img_dimensions_info_text_box = gr.Textbox(
label="Aspect ratio (4:3 = 1.333 | 16:9 = 1.777 | 21:9 = 2.333)")
with gr.Column():
with gr.Column(elem_id="text2img_col2"):
with gr.Box():
output_txt2img_gallery = gr.Gallery(label="Images", elem_id="txt2img_gallery_output").style(
grid=[4, 4])
Expand Down Expand Up @@ -312,7 +312,7 @@ def draw_gradio_ui(opt, img2img=lambda x: x, txt2img=lambda x: x, imgproc=lambda
label='Batch count (how many batches of images to generate)',
value=img2img_defaults['n_iter'])
img2img_dimensions_info_text_box = gr.Textbox(
label="Aspect ratio (4:3 = 1.333 | 16:9 = 1.777 | 21:9 = 2.333)")
label="Aspect ratio (4:3 = 1.333 | 16:9 = 1.777 | 21:9 = 2.333)", lines="2")
with gr.Column():
img2img_steps = gr.Slider(minimum=1, maximum=250, step=1, label="Sampling Steps",
value=img2img_defaults['ddim_steps'])
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ omegaconf==2.2.3
Jinja2==3.1.2 # Jinja2 is required by Gradio

# Environment Dependencies for WebUI (gradio)
gradio==3.1.6
gradio==3.4.1

# Environment Dependencies for WebUI (streamlit)
streamlit==1.13.0
Expand Down

0 comments on commit a1763c3

Please sign in to comment.