otx.cli.tools.find#

OTX searching command ‘otx find’.

Through this command, you can check the tasks, templates, and backbones available in OTX.

Functions

generate_backbone_rows(index, backbone_type, ...)

Generate table row for backbone json format.

main()

Main function for model templates & backbone searching.

parse_args()

Parses command line arguments.

otx.cli.tools.find.generate_backbone_rows(index: int, backbone_type: str, meta_data: dict)[source]#

Generate table row for backbone json format.

It expects a json file format from src/otx/cli/builder/supported_backbone. index: The index of each backbone (int) backbone_type: The backbone type want to add (str) meta_data: This is the metadata of the backbone type (dict)

Metadata keys expect required, options, and available.

otx.cli.tools.find.main()[source]#

Main function for model templates & backbone searching.

When the template argment is input, the templates based on the otx folder are displayed. Given a backbone argument as input, it displays a list of backbones available in the backend of the relevant task.

otx.cli.tools.find.parse_args()[source]#

Parses command line arguments.