diff options
author | storyicon <storyicon@foxmail.com> | 2023-11-17 09:48:18 +0000 |
---|---|---|
committer | storyicon <storyicon@foxmail.com> | 2023-11-17 09:48:18 +0000 |
commit | 4f2a4a361511ca3b8cdd7373f6c7d723583e8fdb (patch) | |
tree | 3e8db938ee9054d69b07d97379846007adab31cd /modules/rng.py | |
parent | 4afaaf8a020c1df457bcf7250cb1c7f609699fa7 (diff) | |
download | stable-diffusion-webui-gfx803-4f2a4a361511ca3b8cdd7373f6c7d723583e8fdb.tar.gz stable-diffusion-webui-gfx803-4f2a4a361511ca3b8cdd7373f6c7d723583e8fdb.tar.bz2 stable-diffusion-webui-gfx803-4f2a4a361511ca3b8cdd7373f6c7d723583e8fdb.zip |
feat: fix randn found element of type float at pos 2
Signed-off-by: storyicon <storyicon@foxmail.com>
Diffstat (limited to 'modules/rng.py')
-rw-r--r-- | modules/rng.py | 2 |
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 = []
|