mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-07-21 05:48:16 +08:00
Add pass through for preview mask
This commit is contained in:
parent
206b9245dc
commit
f8af1444fb
@ -419,17 +419,18 @@ class MaskPreview(IO.ComfyNode):
|
|||||||
search_aliases=["show mask", "view mask", "inspect mask", "debug mask"],
|
search_aliases=["show mask", "view mask", "inspect mask", "debug mask"],
|
||||||
display_name="Preview Mask",
|
display_name="Preview Mask",
|
||||||
category="image/mask",
|
category="image/mask",
|
||||||
description="Saves the input images to your ComfyUI output directory.",
|
description="Preview the masks without saving them to the ComfyUI output directory.",
|
||||||
inputs=[
|
inputs=[
|
||||||
IO.Mask.Input("mask"),
|
IO.Mask.Input("mask"),
|
||||||
],
|
],
|
||||||
hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
|
hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
|
||||||
is_output_node=True,
|
is_output_node=True,
|
||||||
|
outputs=[IO.Mask.Output(display_name="mask")]
|
||||||
)
|
)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def execute(cls, mask, filename_prefix="ComfyUI") -> IO.NodeOutput:
|
def execute(cls, mask, filename_prefix="ComfyUI") -> IO.NodeOutput:
|
||||||
return IO.NodeOutput(ui=UI.PreviewMask(mask))
|
return IO.NodeOutput(mask, ui=UI.PreviewMask(mask))
|
||||||
|
|
||||||
|
|
||||||
class MaskExtension(ComfyExtension):
|
class MaskExtension(ComfyExtension):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user