mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-03 20:37:08 +08:00
check if need to disable pbar
This commit is contained in:
parent
b3b36e5a69
commit
1baa1bdafc
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user