MCPcopy Create free account
hub / github.com/dcharatan/flowmap / Visualizer

Class Visualizer

flowmap/visualization/visualizer.py:15–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14
15class 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected