aboutsummaryrefslogtreecommitdiffstats
path: root/modules/rng.py
diff options
context:
space:
mode:
authorCodeHatchling <steve@codehatch.com>2023-12-03 04:14:02 +0000
committerCodeHatchling <steve@codehatch.com>2023-12-03 04:14:02 +0000
commit3bd3a091604a332de6ff249870dabd2a91215499 (patch)
tree0323625627748ee44fc192bb2496585a4db56b5a /modules/rng.py
parentbb04d400c95df01d191ef6c1a43e66b95425fa33 (diff)
parentf0f100e67b78f686dc73cf3c8cad422e45cc9b8a (diff)
downloadstable-diffusion-webui-gfx803-3bd3a091604a332de6ff249870dabd2a91215499.tar.gz
stable-diffusion-webui-gfx803-3bd3a091604a332de6ff249870dabd2a91215499.tar.bz2
stable-diffusion-webui-gfx803-3bd3a091604a332de6ff249870dabd2a91215499.zip
Merge remote-tracking branch 'origin/dev' into soft-inpainting
# Conflicts: # modules/processing.py
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 = []