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:

  1. model_paths in user_settings.yaml
    The user_settings.yaml file may contain the field model_paths which should be a list of directories containing model specification scripts. If the setting field exists, these directories are recursively searched in the provided order.

  2. Current working directory
    The current working directory (not including the YZLITE Python package/repository root directory) is searched (not recursively).

  3. 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.

  4. YZLITE package module: yzlite.models
    The default search path is the yzlite.models module directory which is recursively searched.