ComfyUI Node
CV Load Labels
Reads a class-labels text file (one label per line, e.g. models/labels/coco-labels-2014_2017.txt) and outputs the labels as a newline-joined STRING plus a string array. Feed either into a decoder's 'labels' input (e.g. 'CV YOLO Detect Decode') so detections are named by class instead of by id.
CV Load Labels
- labels
- labels_array
- count
◄file▾►
Categoryimage/CV/dnn
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| file | COMBO | Label .txt file from ComfyUI/models/labels. Line N (0-based) is the name of class id N. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| labels | STRING | The labels, newline-joined. Feed a decoder's 'labels' input (also a multiline widget you can paste into directly). |
| labels_array | NPARRAY | The labels as a (C,) string array, one row per class id. |
| count | INT | Number of labels read. |