Skip to content

Commit

Permalink
Merge pull request #12586 from catboxanon/fix/rng-shape
Browse files Browse the repository at this point in the history
RNG: Make all elements of shape `int`s
  • Loading branch information
AUTOMATIC1111 authored Aug 15, 2023
2 parents d09d33b + 5b28b7d commit fd563e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/rng.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd563e3

Please sign in to comment.