Update train_network.py

This commit is contained in:
DKnight54
2025-02-02 04:39:15 +08:00
committed by GitHub
parent 6eabaf3775
commit 6fc38477c8

View File

@@ -1026,6 +1026,7 @@ 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}")
example_tuple = (all_latents, all_captions)
if accelerator.sync_gradients:
progress_bar.update(1)