From d7956717631d2824821aec30bc15a815dba54b66 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Thu, 26 Feb 2026 18:03:56 +0100 Subject: [PATCH] Display LoRA strength with one decimal place (1.0 not 1) Co-Authored-By: Claude Opus 4.6 --- tab_batch_ng.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tab_batch_ng.py b/tab_batch_ng.py index a41fab3..d1b7c00 100644 --- a/tab_batch_ng.py +++ b/tab_batch_ng.py @@ -499,12 +499,13 @@ def _render_sequence_card(i, seq, batch_list, data, file_path, state, 'Str', value=lora_strength, min=0, max=10, step=0.1, + format='%.1f', ).props('outlined dense').style('max-width: 80px') def _lora_sync(key=k, n_inp=name_input, s_inp=strength_input): name = n_inp.value or '' strength = s_inp.value if s_inp.value is not None else 1.0 - seq[key] = f'' if name else '' + seq[key] = f'' if name else '' name_input.on('blur', lambda _, s=_lora_sync: s()) name_input.on('update:model-value', lambda _, s=_lora_sync: s())