diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-15 18:47:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-15 18:47:02 +0000 |
commit | fd563e3274c18a436a942001c70e6225bdcfe276 (patch) | |
tree | dd439d2292b50cf0b6a83b20e7c9900f4802ad6c /modules/rng.py | |
parent | d09d33bc2d8572bddad067e35701aafc5b48cc09 (diff) | |
parent | 5b28b7dbc7a339e51b42a05994293e17b958c36c (diff) | |
download | stable-diffusion-webui-gfx803-fd563e3274c18a436a942001c70e6225bdcfe276.tar.gz stable-diffusion-webui-gfx803-fd563e3274c18a436a942001c70e6225bdcfe276.tar.bz2 stable-diffusion-webui-gfx803-fd563e3274c18a436a942001c70e6225bdcfe276.zip |
Merge pull request #12586 from catboxanon/fix/rng-shape
RNG: Make all elements of shape `int`s
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 f927a318..9e8ba2ee 100644 --- a/modules/rng.py +++ b/modules/rng.py @@ -98,7 +98,7 @@ def slerp(val, low, high): class ImageRNG:
def __init__(self, shape, seeds, subseeds=None, subseed_strength=0.0, seed_resize_from_h=0, seed_resize_from_w=0):
- self.shape = shape
+ self.shape = tuple(map(int, shape))
self.seeds = seeds
self.subseeds = subseeds
self.subseed_strength = subseed_strength
|