mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Prep for splitting pre-processor and controlnet nodes
This commit is contained in:
parent
f3666eda63
commit
598a628790
@ -80,11 +80,11 @@ class PreprocessedControlNetInvocation(BaseInvocation, PILInvocationConfig):
|
|||||||
return image
|
return image
|
||||||
|
|
||||||
def invoke(self, context: InvocationContext) -> ControlOutput:
|
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
|
self.image.image_type, self.image.image_name
|
||||||
)
|
)
|
||||||
# image type should be PIL.PngImagePlugin.PngImageFile ?
|
# 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,
|
# 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
|
# so for now setting image_type to RESULT instead of INTERMEDIATE so will get saved in gallery
|
||||||
# image_type = ImageType.INTERMEDIATE
|
# image_type = ImageType.INTERMEDIATE
|
||||||
|
Loading…
Reference in New Issue
Block a user