Skip to main content

resolve_sources

Function resolve_sources 

Source
pub fn resolve_sources(
    sources: ModelSources,
    overrides: &ModelOverrides,
) -> Result<ResolvedModelConfig, ModelConfigError>
Expand description

Resolves a configuration from already-read sources.

When the signals carry no metadata, the embedded files’ metadata stands in for it, so Ultralytics inference sees the ONNX props or the TFLite metadata.json the container holds.

§Errors

Any ModelConfigError: a malformed recognised file, an unsupported field or architecture, an override that cannot apply, or nothing to build a schema from (ModelConfigError::Unresolved).