Nodes/comfyui_cv/CV Load Labels
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.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Load Labels
    • labels
    • labels_array
    • count
    file
    Categoryimage/CV/dnn

    Inputs (1)

    NameTypeDefaultDescription
    fileCOMBOLabel .txt file from ComfyUI/models/labels. Line N (0-based) is the name of class id N.

    Outputs (3)

    NameTypeDescription
    labelsSTRINGThe labels, newline-joined. Feed a decoder's 'labels' input (also a multiline widget you can paste into directly).
    labels_arrayNPARRAYThe labels as a (C,) string array, one row per class id.
    countINTNumber of labels read.