Nodes/ComfyUI-XiaomiLens/Xiaomi-Lens-0 Segment
ComfyUI Node

Xiaomi-Lens-0 Segment

Finds what the text describes and returns a mask and a box per instance (greedy decoding, as upstream's infer.py). find: the query is put into the README's grounding prompt. instruction: the text is sent as typed (for questions such as 'Which object would you use to stir the drink? Report bbox coordinates and masks.').

By hiroki-abe-58·Created 2 days ago·Updated 2 days ago· 0
Xiaomi-Lens-0 Segment
  • model
  • image
  • mask
  • instance_masks
  • preview
  • text
  • boxes
◄querythe cat►
◄prompt_modefind►
◄threshold0.50►
◄max_new_tokens16384►
Categorymask/xiaomi_lens

Inputs (6)

NameTypeDefaultDescription
modelXIAOMI_LENS_MODEL—
imageIMAGE—
querySTRINGthe cat—
prompt_modeCOMBOfindfind: Locate all instances in the image that match the description "<query>". Report bbox coordinates and masks. instruction: the query as typed
thresholdFLOAT0.500–1mask probability threshold (upstream: 0.5). 0: soft masks (the probabilities)
max_new_tokensINT1638416–16384generation limit (upstream default 16384); a reasoning answer can be long

Outputs (5)

NameTypeDescription
maskMASK—
instance_masksMASK—
previewIMAGE—
textSTRING—
boxesSTRING—