mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-13 23:04:40 +08:00
Update nodes.py
This commit is contained in:
parent
1c3e7d0df7
commit
7c92f70927
22
nodes.py
22
nodes.py
@ -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",
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user