From 0ef0575e458029232761a74e4207082f1af029b0 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 24 Dec 2022 08:36:30 +0100 Subject: Fix --- 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 a80e44f..5c056a6 100644 --- a/training/util.py +++ b/training/util.py @@ -74,7 +74,7 @@ class CheckpointerBase: generator=generator, ) - grid_cols = max(self.sample_batch_size, 4) + grid_cols = min(self.sample_batch_size, 4) grid_rows = (self.sample_batches * self.sample_batch_size) // grid_cols with torch.autocast("cuda"), torch.inference_mode(): -- cgit v1.2.3-70-g09d2