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

Method get_seq_framenum

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

Source from the content-addressed store, hash-verified

93 return len(self.sequence_list)
94
95 def get_seq_framenum(self, index: Optional[int] = None, sequence_name: Optional[str] = None):
96 if sequence_name is None:
97 if index is None:
98 raise ValueError("Please specify either index or sequence_name")
99 sequence_name = self.sequence_list[index]
100 return self.metadata[sequence_name].shape[0]
101
102 def __getitem__(self, idx_N):
103 """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