Yet again

This commit is contained in:
blepping
2024-01-28 23:06:47 -07:00
parent a551ca25a5
commit 92561f373e
+1 -1
View File
@@ -63,7 +63,7 @@ class BetterTAESDPreviewer(_ORIG_PREVIEWER):
# Very wide images - prioritize vertical layout.
cols = min(math.ceil(batch_size / 4), max_cols)
else:
cols = min(math.ceil(batch_size / ratio / 2.0), max_cols)
cols = min(math.ceil(batch_size / math.ceil(ratio) / 2.0), max_cols)
rows = math.ceil(batch_size / cols)
return cols, rows