Nodes/comfyui_cv/CV DNN Pick Output
ComfyUI Node

CV DNN Pick Output

Selects one output array from the list produced by 'CV DNN Forward All' - by position ('by index', 'first', 'last'), by layer NAME ('by name', matched against Forward All's output_names, so output ORDER stops mattering), or by shape heuristic ('3-D detection head' picks the first (1, N, C) tensor, '4-D prototype map' the first (1, C, H, W) tensor that is not a (..., 1, 4) box tensor). Generic plumbing node: chain one per output you need into the matching decoder input, or into 'Inspect CV Data'.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV DNN Pick Output
  • outputs
  • output
  • index
modeby index
index0
output_names
name
Categoryimage/CV/dnn

Inputs (5)

NameTypeDefaultDescription
outputsNPARRAYThe 'outputs' list from 'CV DNN Forward All'.
modeCOMBOby indexHow to pick: 'by index' uses the index widget; 'by name' matches the name widget against the connected output_names; the shape heuristics pick the first output with that number of dimensions, except '4-D map (highest resolution)', which picks the 4-D output with the largest H*W (the full-res flow of a multi-scale model, whatever order the engine lists the layers in); 'first'/'last' pick the ends.
indexINT00–63Position to pick when mode = 'by index' (0-based, matching the output_names order).
output_namesoptSTRINGThe 'output_names' STRING from 'CV DNN Forward All' (needed for mode = 'by name').
nameoptSTRINGLayer name to pick when mode = 'by name'. Exact match first, then substring match.

Outputs (2)

NameTypeDescription
outputNPARRAYThe picked output array.
indexINTThe position the array was picked from (useful when a name or shape heuristic did the picking).