Skip to main content

Module models

Module models 

Source
Expand description

Models directory resolution, and the canonical form of a model file path.

Provides utilities for resolving the models directory from explicit paths, environment variables, or platform defaults, plus the single definition of what makes two paths “the same model file” — see canonical_model_path.

Structs§

ModelsDirResolution
Resolution result for the models directory.

Enums§

ModelsDirSource
How the models directory was derived.

Constants§

DEFAULT_MODELS_DIR_RELATIVE
Default relative location for downloaded models on non-Windows platforms.

Functions§

canonical_model_path
Resolve path to the one form the library identifies a model file by.
canonical_model_path_string
The canonical path as the string the file_path column stores.
default_models_dir
Return the platform-specific default models directory.
resolve_models_dir
Resolve the models directory from an explicit override, env var, or default.