Skip to main content

🔧 RemBG Session

essentials/image manipulation
RemBGSession+

Example

JSON Example
{
  "class_type": "RemBGSession+",
  "inputs": {
    "model": "u2net: general purpose",
    "providers": "CPU"
  }
}

This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.

Inputs

NameTypeStatusConstraintsDefault
modelENUM
8 options
  • u2net: general purpose
  • u2netp: lightweight general purpose
  • u2net_human_seg: human segmentation
  • u2net_cloth_seg: cloths Parsing
  • silueta: very small u2net
  • isnet-general-use: general purpose
  • isnet-anime: anime illustrations
  • sam: general purpose
required--
providersENUM
8 options
  • CPU
  • CUDA
  • ROCM
  • DirectML
  • OpenVINO
  • CoreML
  • Tensorrt
  • Azure
required--

Outputs

IndexNameTypeIs ListConnection Reference
0REMBG_SESSIONREMBG_SESSIONNo["{node_id}", 0]
How to connect to these outputs

To connect another node's input to an output from this node, use the connection reference format:

["node_id", output_index]

Where node_id is the ID of this RemBGSession+ node in your workflow, and output_index is the index from the table above.

Example

If this node has ID "5" in your workflow:

  • REMBG_SESSION (REMBG_SESSION): ["5", 0]
Was this page helpful?