ComfyTV/Imagegenerated

Erase(EraseStage)

The Erase node (EraseStage) removes content from an image using a mask.

Erase Stage

image
image
workflow
COMBO
mask_data
STRING
ComfyTV

Description

The Erase node (EraseStage) removes content from an image using a mask. It selects one of the available erase backends through the workflow widget, applies the mask supplied in mask_data, and returns the resulting image as a COMFYTV_IMAGE.

Because the erase behavior is delegated to a backend, the exact algorithm and the acceptable mask format depend on the selected workflow option. The node is part of the ComfyTV/Image category and is intended to sit in a pipeline alongside other ComfyTV image and mask nodes.

Inputs

workflow

  • Type: COMBO
  • Required: Yes

Selects which erase backend to run. The available entries come from the ComfyTV installation and may change as backends are added or removed. Choose the backend first, since it determines how mask_data is interpreted and what kind of erasure is performed.

mask_data

  • Type: STRING
  • Required: Yes
  • Default: "" (empty)

A string-encoded mask payload describing the region or regions to erase. The content must be in the format expected by the selected workflow backend. An empty string is allowed by the node but generally means no usable mask information is supplied, so the erase behavior will depend on the backend.

image

  • Type: COMFYTV_IMAGE
  • Required: No

The source image to operate on. It is optional at the connection level, but in normal use it should be connected to the image you want to erase from. Connect the image produced by an upstream ComfyTV node here.

Outputs

COMFYTV_IMAGE

The resulting image after the erase operation has been applied. Connect this output to downstream nodes that expect a COMFYTV_IMAGE, such as preview, save, or further image-processing stages.

Usage Notes

  • Select the workflow backend before wiring the mask, so you can supply mask_data in the correct format for that backend.
  • mask_data is a string rather than an image socket, so it is typically passed from a node that serializes mask information. Keep the mask and the selected backend consistent with each other.
  • The image input is optional in the node definition, but most workflows should connect a source image explicitly. Leaving it disconnected is only appropriate when the chosen backend is expected to work without one.
  • Empty mask_data is valid input but is unlikely to produce a meaningful erase. Populate it before running the node in a real workflow.
  • Because the output type is COMFYTV_IMAGE, the result is intended to remain within the ComfyTV image pipeline rather than being a generic ComfyUI IMAGE.

Comments

Sign in with GitHub to join the discussion.

Loading comments…