From 7c92f70927f6d58eb8639e79bcb95efe0aed5d79 Mon Sep 17 00:00:00 2001 From: Kijai <40791699+kijai@users.noreply.github.com> Date: Wed, 24 Apr 2024 14:23:24 +0300 Subject: [PATCH] Update nodes.py --- nodes.py | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index 00110ad..1fe6f75 100644 --- a/nodes.py +++ b/nodes.py @@ -1410,6 +1410,24 @@ Converts any type to a string. else: return return (stringified,) + +class ImagePass: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("IMAGE",), + }, + } + RETURN_TYPES = ("IMAGE",) + FUNCTION = "passthrough" + CATEGORY = "KJNodes/misc" + DESCRIPTION = """ +Passes the image through without modifying it. +""" + + def passthrough(self, image): + return image, class Sleep: @classmethod @@ -5177,7 +5195,8 @@ NODE_CLASS_MAPPINGS = { "MaskOrImageToWeight": MaskOrImageToWeight, "WeightScheduleConvert": WeightScheduleConvert, "FloatToMask": FloatToMask, - "CustomSigmas": CustomSigmas + "CustomSigmas": CustomSigmas, + "ImagePass": ImagePass } NODE_DISPLAY_NAME_MAPPINGS = { "INTConstant": "INT Constant", @@ -5264,4 +5283,5 @@ NODE_DISPLAY_NAME_MAPPINGS = { "WeightScheduleConvert": "Weight Schedule Convert", "FloatToMask": "Float To Mask", "CustomSigmas": "Custom Sigmas", + "ImagePass": "ImagePass", } \ No newline at end of file