mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 02:30:30 -08:00
RNG: Make all elements of shape ints
This commit is contained in:
parent
85fcb7b8df
commit
5b28b7dbc7
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ def slerp(val, low, high):
|
||||||
|
|
||||||
class ImageRNG:
|
class ImageRNG:
|
||||||
def __init__(self, shape, seeds, subseeds=None, subseed_strength=0.0, seed_resize_from_h=0, seed_resize_from_w=0):
|
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.seeds = seeds
|
||||||
self.subseeds = subseeds
|
self.subseeds = subseeds
|
||||||
self.subseed_strength = subseed_strength
|
self.subseed_strength = subseed_strength
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue