morpheus.utils.module_utils.ModuleLoaderFactory

class ModuleLoaderFactory(module_id, module_namespace, config_schema=None)[source]

Bases: object

Class that acts as a simple wrapper to load a SegmentModule.

Attributes
_id

The module identifier.

_namespace

The namespace of the module.

_config_schema

The Pydantic model representing the parameter contract for the module.

Methods

get_instance(module_name, module_config) Loads a module instance and returns its definition.
print_schema() Returns a human-readable description of the module's parameter schema.
get_instance(module_name, module_config)[source]

Loads a module instance and returns its definition.

Parameters
module_name

The name of the module to be loaded.

module_config

The configuration dictionary for the module.

Returns
ModuleLoader

A specific instance of this module.

print_schema()[source]

Returns a human-readable description of the module’s parameter schema.

Returns
str

A description of the module’s parameter schema.

Previous morpheus.utils.module_utils.ModuleLoader
Next morpheus.utils.monitor_utils
© Copyright 2024, NVIDIA. Last updated on Apr 25, 2024.