Try Pro FREE for 2 weeksGet Started

color-pick-by-class — Conditional AI Model

Name a class and keep only the pixels a segmentation model assigned to it, discarding the rest of the frame. It reads the segmenter's own text output, so the colors never have to be guessed. CPU, instant.

Details

  • CategoryConditional
  • Year-1
  • License

Inputs & Outputs

ImageInputimage

The input image

TextInputstring

Line separated input string. A line contains a class and color RGB values

ImageOutputimage

Image with selected colors highlighted by class

Parameters

target_classesstringdefault

Target class names (comma-separated)

Class names to keep, comma-separated. Must match labels emitted by the upstream Segmentation node — e.g. 'person', 'car', 'subject', 'object_0'. Multiple classes are unioned. Leave empty to keep nothing (typically a mistake — supply at least one class).

keep_colorbooleandefault false

Keep original colors

When true, kept regions retain the input image's original colors (cutout look). When false (default), kept regions are returned as a white-on-black binary mask, suitable for feeding into Image-Multiply or Inpainting.

Tags

  • selection
  • extraction
  • segmentation-post-process
  • color-region

Alternatives in Selection & Extraction

All AI models