MCPcopy Create free account
hub / github.com/InternRobotics/G2VLM / get_seq_framenum

Method get_seq_framenum

eval_code/recons/datasets/eth3d.py:58–63  ·  view source on GitHub ↗
(self, index: Optional[int] = None, sequence_name: Optional[str] = None)

Source from the content-addressed store, hash-verified

56 return len(self.sequence_list)
57
58 def get_seq_framenum(self, index: Optional[int] = None, sequence_name: Optional[str] = None):
59 if sequence_name is None:
60 if index is None:
61 raise ValueError("Please specify either index or sequence_name")
62 sequence_name = self.sequence_list[index]
63 return len(self.metadata[sequence_name])
64
65 def __getitem__(self, idx_N):
66 """Fetch item by index and a dynamic variable n_per_seq."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected