From 16b3eb11ccbac74f5088155fdb35248cf857dded Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sun, 5 Apr 2026 22:48:56 +0200 Subject: [PATCH] fix: pass max_size=800 to progress bar preview (was 85px wide) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The third element in ComfyUI's preview tuple is max_size in pixels, not JPEG quality. Passing 85 was capping the live loss curve at 85×40px. Co-Authored-By: Claude Sonnet 4.6 --- nodes/selva_lora_trainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/selva_lora_trainer.py b/nodes/selva_lora_trainer.py index 3dca384..04bb572 100644 --- a/nodes/selva_lora_trainer.py +++ b/nodes/selva_lora_trainer.py @@ -489,7 +489,7 @@ class SelvaLoraTrainer: # Live preview: send updated loss curve to ComfyUI frontend preview_img = _draw_loss_curve(loss_history, log_interval, start_step) pbar_train.update_absolute( - step - start_step, remaining, ("JPEG", preview_img, 85) + step - start_step, remaining, ("JPEG", preview_img, 800) ) if step % save_every == 0 or step == steps: