From 52d5451804fba34a07b1975ef5ce024bce747165 Mon Sep 17 00:00:00 2001 From: Martin Kristiansen Date: Sun, 6 Aug 2023 01:30:35 -0400 Subject: [PATCH] Add self.min, not self.max --- invokeai/app/invocations/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/app/invocations/image.py b/invokeai/app/invocations/image.py index 9f60cb620ac..3446010b0ec 100644 --- a/invokeai/app/invocations/image.py +++ b/invokeai/app/invocations/image.py @@ -501,7 +501,7 @@ def invoke(self, context: InvocationContext) -> ImageOutput: image = context.services.images.get_pil_image(self.image.image_name) image_arr = numpy.asarray(image, dtype=numpy.float32) / 255 - image_arr = image_arr * (self.max - self.min) + self.max + image_arr = image_arr * (self.max - self.min) + self.min lerp_image = Image.fromarray(numpy.uint8(image_arr))