aboutsummaryrefslogtreecommitdiffstats
path: root/modules/rng.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-12-14 07:10:43 +0000
committerGitHub <noreply@github.com>2023-12-14 07:10:43 +0000
commit097140ac1a3caf6e3c9980a757d4b52e6a76b789 (patch)
treec31cf29908f94e7f6792b063df4543d6f83b423c /modules/rng.py
parentbda86f0fd9653657c146f7c1128f92771d16ad4e (diff)
parent778a30a95e216f9f7ce0126dbbdb1334afc3d796 (diff)
downloadstable-diffusion-webui-gfx803-097140ac1a3caf6e3c9980a757d4b52e6a76b789.tar.gz
stable-diffusion-webui-gfx803-097140ac1a3caf6e3c9980a757d4b52e6a76b789.tar.bz2
stable-diffusion-webui-gfx803-097140ac1a3caf6e3c9980a757d4b52e6a76b789.zip
Merge branch 'dev' into master
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 = []