From db27263bc2589d77ebce36c91fb1c31c4672d4af Mon Sep 17 00:00:00 2001 From: user1 Date: Fri, 5 May 2023 17:11:31 -0700 Subject: [PATCH] Prep for splitting pre-processor and controlnet nodes --- invokeai/app/invocations/controlnet_image_processors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invokeai/app/invocations/controlnet_image_processors.py b/invokeai/app/invocations/controlnet_image_processors.py index 9114648d8d..8dfde27000 100644 --- a/invokeai/app/invocations/controlnet_image_processors.py +++ b/invokeai/app/invocations/controlnet_image_processors.py @@ -80,11 +80,11 @@ class PreprocessedControlNetInvocation(BaseInvocation, PILInvocationConfig): return image def invoke(self, context: InvocationContext) -> ControlOutput: - image = context.services.images.get( + raw_image = context.services.images.get( self.image.image_type, self.image.image_name ) # image type should be PIL.PngImagePlugin.PngImageFile ? - processed_image = self.run_processor(image) + processed_image = self.run_processor(raw_image) # currently can't see processed image in node UI without a showImage node, # so for now setting image_type to RESULT instead of INTERMEDIATE so will get saved in gallery # image_type = ImageType.INTERMEDIATE