mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-18 01:30:02 +00:00
Update train_network.py
This commit is contained in:
@@ -1024,7 +1024,7 @@ class NetworkTrainer:
|
|||||||
|
|
||||||
# Checks if the accelerator has performed an optimization step behind the scenes
|
# Checks if the accelerator has performed an optimization step behind the scenes
|
||||||
# Collecting latents and caption lists from all processes
|
# Collecting latents and caption lists from all processes
|
||||||
all_latents = gather_object(latents)
|
all_latents = gather_object([latents])
|
||||||
all_captions = gather_object(batch["captions"])
|
all_captions = gather_object(batch["captions"])
|
||||||
logger.info(f"latents: {latents}")
|
logger.info(f"latents: {latents}")
|
||||||
logger.info(f"all_latents: {all_latents}")
|
logger.info(f"all_latents: {all_latents}")
|
||||||
|
|||||||
Reference in New Issue
Block a user