mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-07-12 23:27:00 +08:00
fix wrong ui pbar update
This commit is contained in:
parent
305602c668
commit
d330bb2a37
@ -341,7 +341,7 @@ class TrainSampler(comfy.samplers.Sampler):
|
||||
if (i + 1) % self.grad_acc == 0:
|
||||
self.optimizer.step()
|
||||
self.optimizer.zero_grad()
|
||||
ui_pbar.update(1)
|
||||
ui_pbar.update(1)
|
||||
torch.cuda.empty_cache()
|
||||
return torch.zeros_like(latent_image)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user