Skip to content

Commit c8cad1c

Browse files
committed
added logging in validation
1 parent 03a3dd1 commit c8cad1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flaxdiff/trainer/general_diffusion_trainer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ def validation_loop(
428428
generate_samples = val_step_fn
429429

430430
val_ds = iter(val_ds) if val_ds else None
431+
print(f"Validation loop started for process index {process_index} with {global_device_count} devices.")
431432
# Evaluation step
432433
try:
433434
metrics = {metric.name: [] for metric in self.eval_metrics} if self.eval_metrics else {}
@@ -487,7 +488,7 @@ def validation_loop(
487488
self.wandb.log({
488489
f"val/{key}": value,
489490
}, step=current_step)
490-
491+
print(f"Validation metrics for process index {process_index}: {metrics}")
491492

492493
# Close validation dataset iterator
493494
del val_ds

0 commit comments

Comments
 (0)