Skip to content

Commit

Permalink
Merge pull request lllyasviel#735 from MoonRide303/reqs-update
Browse files Browse the repository at this point in the history
Updated requirements (Gradio, Pillow)
  • Loading branch information
MoonRide303 authored Oct 19, 2023
2 parents 296b1da + bb4c7db commit b3832e2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion fooocus_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '2.1.705'
version = '2.1.706'
4 changes: 2 additions & 2 deletions requirements_versions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ transformers==4.30.2
safetensors==0.3.1
accelerate==0.21.0
pyyaml==6.0
Pillow==9.2.0
Pillow==9.4.0
scipy==1.9.3
tqdm==4.64.1
psutil==5.9.5
numpy==1.23.5
pytorch_lightning==1.9.4
omegaconf==2.2.3
gradio==3.39.0
gradio==3.41.2
pygit2==1.12.2
opencv-contrib-python==4.8.0.74
4 changes: 4 additions & 0 deletions update_log.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2.1.706

* Updated requirements (Gradio, Pillow).

# 2.1.703

* Fixed many previous problems related to inpaint.
Expand Down
10 changes: 5 additions & 5 deletions webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@ def generate_clicked(*args):

with shared.gradio_root:
with gr.Row():
with gr.Column():
with gr.Column(scale=2):
progress_window = grh.Image(label='Preview', show_label=True, height=640, visible=False)
progress_html = gr.HTML(value=modules.html.make_progress_html(32, 'Progress 32%'), visible=False, elem_id='progress-bar', elem_classes='progress-bar')
gallery = gr.Gallery(label='Gallery', show_label=False, object_fit='contain', height=745, visible=True, elem_classes='resizable_area')
with gr.Row(elem_classes='type_row'):
with gr.Column(scale=0.85):
with gr.Column(scale=17):
prompt = gr.Textbox(show_label=False, placeholder="Type prompt here.",
value=modules.path.default_positive_prompt,
container=False, autofocus=True, elem_classes='type_row', lines=1024)
with gr.Column(scale=0.15, min_width=0):
with gr.Column(scale=3, min_width=0):
generate_button = gr.Button(label="Generate", value="Generate", elem_classes='type_row', elem_id='generate_button', visible=True)
skip_button = gr.Button(label="Skip", value="Skip", elem_classes='type_row_half', visible=False)
stop_button = gr.Button(label="Stop", value="Stop", elem_classes='type_row_half', elem_id='stop_button', visible=False)
Expand Down Expand Up @@ -179,7 +179,7 @@ def clear_default_image():
inpaint_tab.select(lambda: ['inpaint', default_image], outputs=[current_tab, inpaint_input_image], queue=False, _js=down_js)
ip_tab.select(lambda: 'ip', outputs=[current_tab], queue=False, _js=down_js)

with gr.Column(scale=0.5, visible=False) as right_col:
with gr.Column(scale=1, visible=False) as advanced_column:
with gr.Tab(label='Setting'):
performance_selection = gr.Radio(label='Performance', choices=['Speed', 'Quality'], value='Speed')
aspect_ratios_selection = gr.Radio(label='Aspect Ratios', choices=list(aspect_ratios.keys()),
Expand Down Expand Up @@ -328,7 +328,7 @@ def model_refresh_clicked():

model_refresh.click(model_refresh_clicked, [], [base_model, refiner_model] + lora_ctrls, queue=False)

advanced_checkbox.change(lambda x: gr.update(visible=x), advanced_checkbox, right_col, queue=False)
advanced_checkbox.change(lambda x: gr.update(visible=x), advanced_checkbox, advanced_column, queue=False)

ctrls = [
prompt, negative_prompt, style_selections,
Expand Down

0 comments on commit b3832e2

Please sign in to comment.