ObjectModelOutput

Inheritance diagram of ObjectModelOutput

ObjectModelOutput inheritance diagram

class savant.base.model.ObjectModelOutput(layer_names=<factory>, converter=None, objects='???')

ObjectModel output configuration template.

Validates entries in a module config file under model.output.

Example:

model:
    # model configuration
    output:
        layer_names: [output]
        objects:
            # output objects configuration
objects: List[ObjectModelOutputObject] = '???'

Configuration for each output object class of an object model.

converter: PyFunc | None = None

Model output converter. Converter is used to transform raw tensor output into Savant data format.

Converter implementation should be written as a subclass of BaseObjectModelOutputConverter or BaseAttributeModelOutputConverter or BaseComplexModelOutputConverter depending on the model type.

layer_names: List[str]

Specify model output layer names.