mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-17 10:02:59 +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…
Reference in New Issue
Block a user