irtk.scene.Scene

class irtk.scene.Scene

A class representing a scene with various components.

__init__() None

Initializes a Scene object.

clear_cache() None

Clears the cache and detaches tensors requiring gradients.

configure() None

Configures the scene by identifying components requiring gradients.

filter(component_type: type) List[str]

Filters components by type.

Parameters:

component_type (type) – The type of components to filter.

Returns:

A list of component names matching the specified type.

Return type:

List[str]

set(name: str, component: ParamGroup) None

Sets a component in the scene.

Parameters:
  • name (str) – The name of the component.

  • component (ParamGroup) – The component to be added.