Update train_network.py

This commit is contained in:
DKnight54
2025-02-02 04:56:22 +08:00
committed by GitHub
parent aea7cada42
commit 83a171d3dc

View File

@@ -1026,8 +1026,8 @@ class NetworkTrainer:
# Collecting latents and caption lists from all processes
all_latents = gather_object([latents])
all_captions = gather_object(batch["captions"])
logger.info(f"latents: {latents}")
logger.info(f"all_latents: {all_latents}")
#logger.info(f"latents: {latents}")
#logger.info(f"all_latents: {all_latents}")
example_tuple = (all_latents, all_captions)
if accelerator.sync_gradients:
progress_bar.update(1)