diff options
author | Volpeon <git@volpeon.ink> | 2022-12-24 08:33:00 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-12-24 08:33:00 +0100 |
commit | 1b58ca9d3518cb41313f7fbabfb7d95487a89994 (patch) | |
tree | 4208417db17324348ad6b8b3a2574dc2afeab137 | |
parent | Fix (diff) | |
download | textual-inversion-diff-1b58ca9d3518cb41313f7fbabfb7d95487a89994.tar.gz textual-inversion-diff-1b58ca9d3518cb41313f7fbabfb7d95487a89994.tar.bz2 textual-inversion-diff-1b58ca9d3518cb41313f7fbabfb7d95487a89994.zip |
Fix again
-rw-r--r-- | training/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: | |||
75 | ) | 75 | ) |
76 | 76 | ||
77 | grid_cols = max(self.sample_batch_size, 4) | 77 | grid_cols = max(self.sample_batch_size, 4) |
78 | grid_rows = self.sample_batches * self.sample_batch_size / grid_cols | 78 | grid_rows = (self.sample_batches * self.sample_batch_size) // grid_cols |
79 | 79 | ||
80 | with torch.autocast("cuda"), torch.inference_mode(): | 80 | with torch.autocast("cuda"), torch.inference_mode(): |
81 | for pool, data, latents in [("stable", val_data, stable_latents), ("val", val_data, None), ("train", train_data, None)]: | 81 | for pool, data, latents in [("stable", val_data, stable_latents), ("val", val_data, None), ("train", train_data, None)]: |