| 13 | |
| 14 | |
| 15 | class Visualizer(ABC, Generic[T]): |
| 16 | cfg: T |
| 17 | |
| 18 | def __init__(self, cfg: T) -> None: |
| 19 | super().__init__() |
| 20 | self.cfg = cfg |
| 21 | |
| 22 | @abstractmethod |
| 23 | def visualize( |
| 24 | self, |
| 25 | batch: Batch, |
| 26 | flows: Flows, |
| 27 | tracks: list[Tracks] | None, |
| 28 | model_output: ModelOutput, |
| 29 | model: Model, |
| 30 | global_step: int, |
| 31 | ) -> dict[str, Float[Tensor, "3 _ _"] | Float[Tensor, ""]]: |
| 32 | pass |
nothing calls this directly
no outgoing calls
no test coverage detected