Merge pull request #12586 from catboxanon/fix/rng-shape

RNG: Make all elements of shape `int`s
This commit is contained in:
AUTOMATIC1111 2023-08-15 21:47:02 +03:00 committed by GitHub
commit fd563e3274
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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