aboutsummaryrefslogtreecommitdiff
path: root/modules/rng.py
diff options
context:
space:
mode:
authorcatboxanon <122327233+catboxanon@users.noreply.github.com>2023-08-15 13:38:37 -0400
committercatboxanon <122327233+catboxanon@users.noreply.github.com>2023-08-15 13:38:37 -0400
commit5b28b7dbc7a339e51b42a05994293e17b958c36c (patch)
treec3b844b597ea028494f62b3f79fa3c734a22cb2f /modules/rng.py
parent85fcb7b8dfe7b3dd06931943f095c77f1043dc25 (diff)
RNG: Make all elements of shape `int`s
Diffstat (limited to 'modules/rng.py')
-rw-r--r--modules/rng.py2
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