Update nodes.py

This commit is contained in:
Kijai 2024-04-24 14:23:24 +03:00
parent 1c3e7d0df7
commit 7c92f70927

View File

@ -1411,6 +1411,24 @@ Converts any type to a string.
return return
return (stringified,) 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: class Sleep:
@classmethod @classmethod
def INPUT_TYPES(s): def INPUT_TYPES(s):
@ -5177,7 +5195,8 @@ NODE_CLASS_MAPPINGS = {
"MaskOrImageToWeight": MaskOrImageToWeight, "MaskOrImageToWeight": MaskOrImageToWeight,
"WeightScheduleConvert": WeightScheduleConvert, "WeightScheduleConvert": WeightScheduleConvert,
"FloatToMask": FloatToMask, "FloatToMask": FloatToMask,
"CustomSigmas": CustomSigmas "CustomSigmas": CustomSigmas,
"ImagePass": ImagePass
} }
NODE_DISPLAY_NAME_MAPPINGS = { NODE_DISPLAY_NAME_MAPPINGS = {
"INTConstant": "INT Constant", "INTConstant": "INT Constant",
@ -5264,4 +5283,5 @@ NODE_DISPLAY_NAME_MAPPINGS = {
"WeightScheduleConvert": "Weight Schedule Convert", "WeightScheduleConvert": "Weight Schedule Convert",
"FloatToMask": "Float To Mask", "FloatToMask": "Float To Mask",
"CustomSigmas": "Custom Sigmas", "CustomSigmas": "Custom Sigmas",
"ImagePass": "ImagePass",
} }