↓ 4 callersMethod__init__(self, d_model=512, nhead=8, num_encoder_layers=6,
num_decoder_layers=6, dim_feedforward=2048
omnishotcut/architecture/transformer.py:37
↓ 1 callersFunction_build_closed_boundary_color_maps(
ranges_closed: List[Tuple[int, int]],
T: int,
palette: List[Tuple[int, int, int]],
end_exclu
omnishotcut/util/visualization.py:52
↓ 1 callersFunction_run_on_numpyRun inference on a pre-loaded numpy array (T, H, W, 3). Returns (ranges, intra_labels, inter_labels).
omnishotcut/engine.py:265
↓ 1 callersFunction_to_4d_video_tensor Inputs: [N, H, W, 3] in range [0, 255] Returns: float tensor [N, C, H, W] in [0, 1]
omnishotcut/datasets/transforms.py:12
↓ 1 callersFunctionalign_segments_to_crop segments: list of (start, end, intra_label, inter_label) in global frame indices, [start, end) returns: ab: list of (start2, end2) in
omnishotcut/datasets/dataloader.py:22
Method__init__(self, d_model, nhead, dim_feedforward=2048, dropout=0.1,
activation="relu", normalize_before
omnishotcut/architecture/transformer.py:155
Method__init__(self, d_model, nhead, dim_feedforward=2048, dropout=0.1,
activation="relu", normalize_before
omnishotcut/architecture/transformer.py:215
Method__init__(self, num_pos_feats=64, num_frames = 200, temperature=10000, normalize=False, scale=None)
omnishotcut/architecture/position_encoding.py:19
Method_load_from_state_dict(self, state_dict, prefix, local_metadata, strict,
missing_keys, unexpected_keys
omnishotcut/architecture/backbone.py:35
MethodinferenceRun shot cut detection on a video. Args: video: str file path | np.ndarray (T,H,W,3) uint8 RGB | torch.Tensor (T,H,W,3)
omnishotcut/__init__.py:27