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

Method get_seq_framenum

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

Source from the content-addressed store, hash-verified

199 return len(self.sequence_list)
200
201 def get_seq_framenum(self, index: Optional[int] = None, sequence_name: Optional[str] = None):
202 if sequence_name is None:
203 if index is None:
204 raise ValueError("Please specify either index or sequence_name")
205 sequence_name = self.sequence_list[index]
206 return len(self.metadata[sequence_name])
207
208 def __getitem__(self, idx_N):
209 """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