Update train_network.py

This commit is contained in:
DKnight54
2025-02-02 04:46:53 +08:00
committed by GitHub
parent 6fc38477c8
commit 896ade6f92

View File

@@ -1026,7 +1026,8 @@ class NetworkTrainer:
# Collecting latents and caption lists from all processes
all_latents = gather_object(latents)
all_captions = gather_object(batch["captions"])
logger.log(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)