From 1b58ca9d3518cb41313f7fbabfb7d95487a89994 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 24 Dec 2022 08:33:00 +0100 Subject: Fix again --- training/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'training') diff --git a/training/util.py b/training/util.py index a623dc5..a80e44f 100644 --- a/training/util.py +++ b/training/util.py @@ -75,7 +75,7 @@ class CheckpointerBase: ) grid_cols = max(self.sample_batch_size, 4) - grid_rows = self.sample_batches * self.sample_batch_size / grid_cols + grid_rows = (self.sample_batches * self.sample_batch_size) // grid_cols with torch.autocast("cuda"), torch.inference_mode(): for pool, data, latents in [("stable", val_data, stable_latents), ("val", val_data, None), ("train", train_data, None)]: -- cgit v1.2.3-70-g09d2