aboutsummaryrefslogtreecommitdiff
path: root/modules/rng.py
diff options
context:
space:
mode:
authorKohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com>2023-11-19 15:24:57 +0800
committerKohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com>2023-11-19 15:24:57 +0800
commitb60e1088db2497e945d36c7500dcbf03afceedf2 (patch)
tree96e8b52fc682e778a5e2d226c42a7bb876aaa8b9 /modules/rng.py
parentcd12256575dcce325519ef674323d953fbce252c (diff)
parentfc83af443265d8938cf778143aefec1129d95c42 (diff)
Merge branch 'dev' into test-fp8
Diffstat (limited to 'modules/rng.py')
-rw-r--r--modules/rng.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/rng.py b/modules/rng.py
index 9e8ba2ee..8934d39b 100644
--- a/modules/rng.py
+++ b/modules/rng.py
@@ -110,7 +110,7 @@ class ImageRNG:
self.is_first = True
def first(self):
- noise_shape = self.shape if self.seed_resize_from_h <= 0 or self.seed_resize_from_w <= 0 else (self.shape[0], self.seed_resize_from_h // 8, self.seed_resize_from_w // 8)
+ noise_shape = self.shape if self.seed_resize_from_h <= 0 or self.seed_resize_from_w <= 0 else (self.shape[0], int(self.seed_resize_from_h) // 8, int(self.seed_resize_from_w // 8))
xs = []