Split Parts(SplitPartStage)
Split Parts (SplitPartStage) is a ComfyTV image stage that breaks a source image into separate parts using a segmentation workflow.
Split Part Stage
Description
Split Parts (SplitPartStage) is a ComfyTV image stage that breaks a source image into separate parts using a segmentation workflow. You select the segmentation workflow, provide the part prompts recorded on the node card through parts_data, and connect the image you want to split. The prompts are stored as point groups and boxes in source-image pixel coordinates, and the chosen workflow uses them to isolate the requested parts.
The node belongs to the ComfyTV/Image category.
Inputs
workflow
The segmentation workflow to run. This is a required combo selection; the available choices correspond to the segmentation workflows exposed by ComfyTV. Pick the workflow that matches the kind of parts you want to isolate.
parts_data
Internal JSON containing the part prompts drawn on the node card: point groups and boxes, expressed in source-image pixel coordinates. This field is normally written by the card UI and should be treated as internal state rather than a hand-authored parameter. Prefer drawing and editing the prompts on the card instead of editing the JSON directly.
image
The source image to split, as a COMFYTV_IMAGE. The socket is optional, but the stage needs a source image in order to segment anything; without one there are no pixels to divide into parts.
Outputs
COMFYTV_IMAGES
The collection of part images produced by the segmentation workflow. Use this output when downstream nodes expect multiple images, such as a batch of separated parts.
COMFYTV_IMAGE
A single image emitted by the stage. Use this output when the next node expects one image rather than the full collection of parts.
Usage Notes
- Draw the parts on the card before running the node. Each part is defined by point groups and boxes, which the selected workflow interprets as segmentation prompts.
- Prompts are stored in source-image pixel coordinates. If the source image is resized, cropped, or otherwise transformed after the prompts are drawn, the stored coordinates will no longer line up; redraw or adjust the prompts to match the new image.
- The
workflowselection determines how the prompts are interpreted, so changing workflows can change the shape and number of parts produced from the same prompt data. parts_datais internal JSON. Use the card UI to create and modify prompts rather than typing JSON into the field.- The node provides both a multi-image output and a single-image output, so you can route the parts collection to nodes that accept multiple images and use the single image where a single-image input is required.
Comments
Sign in with GitHub to join the discussion.