Skip to main content

read_sidecars

Function read_sidecars 

Source
pub fn read_sidecars(
    dir: impl AsRef<Path>,
) -> Result<ModelFiles, ModelConfigError>
Expand description

The configuration files beside a model, in dir: edgefirst.json, labels.txt, config.json and preprocessor_config.json.

ยงErrors

ModelConfigError::Io when a file exists but cannot be read, is not UTF-8 or is larger than 16 MiB.