Update train_network.py

This commit is contained in:
DKnight54
2025-01-31 03:12:06 +08:00
committed by GitHub
parent a130bb444b
commit f73db401fa

View File

@@ -1023,7 +1023,6 @@ class NetworkTrainer:
# Checks if the accelerator has performed an optimization step behind the scenes
example_tuple = (latents, batch["captions"])
logger.info(f"Example tuple: {example_tuple}")
if accelerator.sync_gradients:
progress_bar.update(1)
global_step += 1