From dd16f788edf680c3c549f8ebffcd35ed39fea252 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Wed, 24 May 2023 15:05:46 +1000 Subject: [PATCH] fix(nodes): fix RangeOfSizeInvocation off-by-one error --- invokeai/app/invocations/collections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/app/invocations/collections.py b/invokeai/app/invocations/collections.py index d97947e160..475b6028a9 100644 --- a/invokeai/app/invocations/collections.py +++ b/invokeai/app/invocations/collections.py @@ -57,7 +57,7 @@ class RangeOfSizeInvocation(BaseInvocation): def invoke(self, context: InvocationContext) -> IntCollectionOutput: return IntCollectionOutput( - collection=list(range(self.start, self.start + self.size + 1, self.step)) + collection=list(range(self.start, self.start + self.size, self.step)) )