otx.cli.builder#

Model templates builder.

Classes

Builder()

Class that implements a model templates registry.

class otx.cli.builder.Builder[source]#

Bases: object

Class that implements a model templates registry.

build_backbone_config(backbone_type: str, output_path: Path | str)[source]#

Build Backbone configs from backbone type.

This is a function that makes the configuration of the usable backbone found by the user through otx find. backbone_type: The type of backbone want to get - {backend.backbone_type} (str) output_path: new backbone configuration file output path (Union[Path, str])

merge_backbone(model_config_path: Path | str, backbone_config_path: Path | str, output_path: Path | str | None = None)[source]#

Build model & update backbone configs.

This is a function that updates the existing model to be able to build through the backbone configuration file or backbone type. model_config_path: model configuration file path (Union[Path, str]) backbone_config_path: backbone configuration file path (Union[Path, str]) output_path: new model.py output path (Union[Path, str])