Skip to main content

load_labels

Function load_labels 

Source
pub fn load_labels(cache_dir: &Path, source: &str) -> Vec<String>
Expand description

Classifier labels from a model’s config.json id2label, ordered by index. Empty if the file is absent or has no id2label — the registry uses this to auto-derive a local classifier’s labels.