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

Method __init__

flowmap/model/model.py:42–52  ·  view source on GitHub ↗
(
        self,
        cfg: ModelCfg,
        num_frames: int | None = None,
        image_shape: tuple[int, int] | None = None,
    )

Source from the content-addressed store, hash-verified

40
41class Model(nn.Module):
42 def __init__(
43 self,
44 cfg: ModelCfg,
45 num_frames: int | None = None,
46 image_shape: tuple[int, int] | None = None,
47 ) -> None:
48 super().__init__()
49 self.cfg = cfg
50 self.backbone = get_backbone(cfg.backbone, num_frames, image_shape)
51 self.intrinsics = get_intrinsics(cfg.intrinsics)
52 self.extrinsics = get_extrinsics(cfg.extrinsics, num_frames)
53
54 def forward(
55 self,

Callers

nothing calls this directly

Calls 3

get_backboneFunction · 0.85
get_intrinsicsFunction · 0.85
get_extrinsicsFunction · 0.70

Tested by

no test coverage detected