Model Search PathΒΆ
Most commands/APIs support providing a model name argument (as opposed to a file path). e.g:
yzlite train image_example1
yzlite profile my_model
yzlite evaluate keyword_spotting_model
yzlite_model = load_yzlite_model('image_example1')
train_model('image_example1')
profile_model('my_model')
evaluate_model('keyword_spotting_model')
The YZLITE searches the following paths for a model specification script
.py
and/or model archive file
.yzlite.zip
with a matching name:
-
model_paths in user_settings.yaml
The user_settings.yaml file may contain the fieldmodel_pathswhich should be a list of directories containing model specification scripts. If the setting field exists, these directories are recursively searched in the provided order. -
Current working directory
The current working directory (not including the YZLITE Python package/repository root directory) is searched (not recursively). -
Environment Variable: YZLITE_MODEL_PATHS
The environment variable YZLITE_MODEL_PATHS may contain a list of model search directories. If the environment variable exists, these directories are recursively searched in the provided order. -
YZLITE package module: yzlite.models
The default search path is theyzlite.modelsmodule directory which is recursively searched.