update transformers and cleanup ui labels

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-06-02 07:45:37 +02:00
parent 2ad2796ea9
commit bd47b693d2
7 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -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'
+2 -2
View File
@@ -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():
+2 -2
View File
@@ -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'):
+5 -5
View File
@@ -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():
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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