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

Method get_seq_framenum

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

Source from the content-addressed store, hash-verified

80 return len(self.sequence_list)
81
82 def get_seq_framenum(self, index: Optional[int] = None, sequence_name: Optional[str] = None):
83 if sequence_name is None:
84 if index is None:
85 raise ValueError("Please specify either index or sequence_name")
86 sequence_name = self.sequence_list[index]
87 return len(self.metadata[sequence_name])
88
89 def __getitem__(self, idx_N):
90 """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