aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-11-19 08:40:29 +0300
committerGitHub <noreply@github.com>2023-11-19 08:40:29 +0300
commit5a9dc1c0ca9c12b8609790b05b738242bfb1c078 (patch)
tree2d74bfcec169326ca220c3b0215802baaf5ea457
parent5e80d9ee99c5899e5e2b130408ffb65a0585a62a (diff)
parent4f2a4a361511ca3b8cdd7373f6c7d723583e8fdb (diff)
Merge pull request #14004 from storyicon/master
feat: fix randn found element of type float at pos 2
-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 = []