Output Nodes - Suzie1/ComfyUI_Guide_To_Making_Custom_Nodes GitHub Wiki

Examples of output nodes include:

  • Save Image
  • Preview Image
  • Checkpoint Save

Example output node with no output connectors.

image

These nodes do not have any output connectors, instead they will perform an action such as saving an ouput. Examples include:

  • saving an image
  • saving an animation
  • saving prompt data to a file
  • saving scheduling data to a file
  • saving a checkpoint

To make an output node include the following lines in the node class.

    RETURN_TYPES = ()
    OUTPUT_NODE = True

The return statement should look like this if there is no UI output.

    return {}

The return statement could look like this if there is image output to the UI.

    return {"ui": {"images": results}, "result": (image,)}