From bd47b693d21102aa8c0e950ddac33a75f2c008cf Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Tue, 2 Jun 2026 07:45:37 +0200 Subject: [PATCH] update transformers and cleanup ui labels Signed-off-by: Vladimir Mandic --- extensions-builtin/sdnext-modernui | 2 +- installer.py | 4 ++-- modules/ltx/ltx_ui.py | 4 ++-- modules/ui_caption.py | 4 ++-- modules/ui_models.py | 10 +++++----- package.json | 2 +- requirements.txt | 2 +- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/extensions-builtin/sdnext-modernui b/extensions-builtin/sdnext-modernui index ae0e52348..7fdd543d1 160000 --- a/extensions-builtin/sdnext-modernui +++ b/extensions-builtin/sdnext-modernui @@ -1 +1 @@ -Subproject commit ae0e523485f2fa88370733f3f7fb93fd4c9498b7 +Subproject commit 7fdd543d1e13492b44012d2d61ea024eade68548 diff --git a/installer.py b/installer.py index a491b872a..1e2a21681 100644 --- a/installer.py +++ b/installer.py @@ -561,8 +561,8 @@ def check_transformers(): pkg_transformers = package_spec('transformers') pkg_tokenizers = package_spec('tokenizers') # target_commit = '753d61104116eefc8ffc977327b441ee0c8d599f' # transformers commit hash == 4.57.6 - # target_commit = "aad13b87ed59f2afcfaebc985f403301887a35fc" # transformers commit hash == 5.3.0 - target_commit = "380e3cc5d59912a48508cb6d4959a31cd460e12e" # transformers commit hash == 5.5.0.dev-0409 + # target_commit = "380e3cc5d59912a48508cb6d4959a31cd460e12e" # transformers commit hash == 5.5.0.dev-0409 + target_commit = "8e67c5e1d410dff56d985ba7513ccdf57ab1f894" # transformers commit hash == 5.10.0.dev0 == 06-02-2026 if args.use_directml: target_transformers = '4.52.4' target_tokenizers = '0.21.4' diff --git a/modules/ltx/ltx_ui.py b/modules/ltx/ltx_ui.py index 7385d5351..44ea0db48 100644 --- a/modules/ltx/ltx_ui.py +++ b/modules/ltx/ltx_ui.py @@ -64,7 +64,7 @@ def create_ui(prompt, negative, styles, overrides, mp4_fps, mp4_interpolate, mp4 with gr.Accordion(open=False, label='Size', elem_id='ltx_size_accordion'): width, height = ui_sections.create_resolution_inputs('ltx', default_width=832, default_height=480) with gr.Row(): - frames = gr.Slider(label='Frames', minimum=1, maximum=1024, step=1, value=121, elem_id='ltx_frames') + frames = gr.Slider(label='LTX Frames', minimum=1, maximum=1024, step=1, value=121, elem_id='ltx_frames') seed = gr.Number(label='Initial seed', value=-1, elem_id='ltx_seed', container=True) random_seed = ToolButton(ui_symbols.random, elem_id='ltx_seed_random') random_seed.click(fn=lambda: -1, show_progress='hidden', inputs=[], outputs=[seed]) @@ -97,7 +97,7 @@ def create_ui(prompt, negative, styles, overrides, mp4_fps, mp4_interpolate, mp4 refine_strength = gr.Slider(label='LTX refine strength', minimum=0.1, maximum=1.0, step=0.05, value=0.4, elem_id="ltx_refine_strength") parameters_accordion = gr.Accordion(open=False, label="Advanced", elem_id='ltx_parameters_accordion') with parameters_accordion: - steps, sampler_index = ui_sections.create_sampler_and_steps_selection(None, "ltx", default_steps=40) + steps, sampler_index = ui_sections.create_sampler_and_steps_selection(None, "ltx", default_steps=50) with gr.Row(): guidance_scale = gr.Slider(label='LTX guidance scale', minimum=0.0, maximum=14.0, step=0.1, value=4.0, elem_id="ltx_guidance_scale") with gr.Row(): diff --git a/modules/ui_caption.py b/modules/ui_caption.py index cfbf39d9c..03104e7a8 100644 --- a/modules/ui_caption.py +++ b/modules/ui_caption.py @@ -244,9 +244,9 @@ def create_ui(): analyze_question_placeholder = 'Enter your analysis question or leave blank to use default' analyze_prompt_placeholder = 'Enter your prompt to match with image or leave blank to use image metadata' with gr.Row(): - analyze_system = gr.Textbox(label="System Prompt", value=vqa.vlm_analyze, lines=1, elem_id='analyze_system') + analyze_system = gr.Textbox(label="Analyze System Prompt", value=vqa.vlm_analyze, lines=1, elem_id='analyze_system') with gr.Row(): - analyze_question = gr.Textbox(label="Question", placeholder=analyze_question_placeholder, lines=1, elem_id='analyze_question') + analyze_question = gr.Textbox(label="Analyze Question", placeholder=analyze_question_placeholder, lines=1, elem_id='analyze_question') with gr.Row(): analyze_prompt = gr.Textbox(label="Prompt", placeholder=analyze_prompt_placeholder, lines=2, elem_id='analyze_prompt') with gr.Row(elem_id='caption_buttons_query'): diff --git a/modules/ui_models.py b/modules/ui_models.py index 57f621154..789740f4d 100644 --- a/modules/ui_models.py +++ b/modules/ui_models.py @@ -581,16 +581,16 @@ def create_ui(): with gr.Accordion(label='Options', open=False, elem_id="civitai_search_options"): civit_download_btn = gr.Button(value="Download model", variant='primary', elem_id="civitai_download_btn", visible=False) with gr.Row(): - civit_type = gr.Dropdown(choices=type_fallback, label='Model type', value='', elem_id='civit_type') - civit_base = gr.Dropdown(choices=base_models, label='Base model', value='') + civit_type = gr.Dropdown(choices=type_fallback, label='CivitAI model type', value='', elem_id='civit_type') + civit_base = gr.Dropdown(choices=base_models, label='CivitAI base model', value='') with gr.Row(): - civit_sort = gr.Dropdown(choices=sort_fallback, label='Sort', value='', elem_id='civit_sort') + civit_sort = gr.Dropdown(choices=sort_fallback, label='CivitAI sort', value='', elem_id='civit_sort') civit_period = gr.Dropdown( choices=['', 'AllTime', 'Year', 'Month', 'Week', 'Day'], - label='Time period', value='', elem_id='civit_period', + label='CivitAI time period', value='', elem_id='civit_period', ) with gr.Row(): - civit_nsfw = gr.Checkbox(label='NSFW allowed', value=True) + civit_nsfw = gr.Checkbox(label='CivitAI NSFW allowed', value=True) with gr.Row(): civit_token = gr.Textbox(opts.civitai_token, label='CivitAI token', placeholder='optional access token for private or gated models', elem_id="civitai_token") with gr.Row(): diff --git a/package.json b/package.json index b25413856..c204ffe47 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "venv": ". venv/bin/activate", "start": ". venv/bin/activate; python launch.py --debug", "localize": "node cli/localize.js", - "packages": ". venv/bin/activate && pip install --upgrade accelerate huggingface_hub hf_xet safetensors tokenizers peft pytorch_lightning pylint ruff", + "packages": ". venv/bin/activate && pip install --upgrade accelerate huggingface_hub hf_xet safetensors tokenizers peft pytorch_lightning pylint ruff ty pyright", "precommit": ". venv/bin/activate && pre-commit run --all-files", "lint": "npm run precommit && npm run eslint && npm run tsc && npm run ruff && npm run pylint", "test": ". venv/bin/activate; python launch.py --debug --test", diff --git a/requirements.txt b/requirements.txt index c64603dc5..ad0754d23 100644 --- a/requirements.txt +++ b/requirements.txt @@ -30,7 +30,7 @@ requests==2.32.3 tqdm==4.67.3 accelerate==1.13.0 einops==0.8.1 -huggingface_hub==1.16.4 +huggingface_hub==1.17.0 hf_xet==1.5.0 numpy==2.1.2 pandas==2.3.1