otx.cli.registry#

Model templates registry.

Functions

find_and_parse_model_template(path_or_id)

In first function attempts to read a model template from disk under assumption that a path is passed.

Classes

Registry([templates_dir, templates, ...])

Class that implements a model templates registry.

class otx.cli.registry.Registry(templates_dir=None, templates=None, experimental=False)[source]#

Bases: object

Class that implements a model templates registry.

filter(framework=None, task_type=None)[source]#

Filters registry by framework and/or task type and returns filtered registry.

get(template_id, skip_error=False)[source]#

Returns a model template with specified template_id or template.name.

get_backbones(backend_list)[source]#

Returns list of backbones for a given template.

otx.cli.registry.find_and_parse_model_template(path_or_id)[source]#

In first function attempts to read a model template from disk under assumption that a path is passed.

If the attempt is failed, it tries to find template in registry under assumption that an ID or name is passed.