From 1baa1bdafc2d391ae1965c2a388e293621119069 Mon Sep 17 00:00:00 2001 From: Kohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com> Date: Sat, 7 Jun 2025 05:34:24 +0800 Subject: [PATCH] check if need to disable pbar --- comfy_extras/nodes_train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy_extras/nodes_train.py b/comfy_extras/nodes_train.py index 6e5cac3cc..b8cbdfc12 100644 --- a/comfy_extras/nodes_train.py +++ b/comfy_extras/nodes_train.py @@ -500,7 +500,7 @@ class TrainLoraNode: # Training loop torch.cuda.empty_cache() try: - for step in (pbar:=tqdm.trange(steps, desc="Training LoRA", smoothing=0.01)): + for step in (pbar:=tqdm.trange(steps, desc="Training LoRA", smoothing=0.01, disable=not comfy.utils.PROGRESS_BAR_ENABLED)): # Generate random sigma sigma = mp.model.model_sampling.percent_to_sigma( torch.rand((1,)).item()