mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-04 01:07:14 +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
|
# Training loop
|
||||||
torch.cuda.empty_cache()
|
torch.cuda.empty_cache()
|
||||||
try:
|
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
|
# Generate random sigma
|
||||||
sigma = mp.model.model_sampling.percent_to_sigma(
|
sigma = mp.model.model_sampling.percent_to_sigma(
|
||||||
torch.rand((1,)).item()
|
torch.rand((1,)).item()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user