MCPcopy Create free account
hub / github.com/apple/ml-pointersect / __len__

Method __len__

pointersect/data/hypersim_dataset.py:538–539  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

536 return xyz_w # (h, w, 3)
537
538 def __len__(self):
539 return len(self.idx_to_cam_name_and_frame_idx)
540
541 def __getitem__(self, i):
542 cam_name_and_frame_idx_pairs = self.idx_to_cam_name_and_frame_idx[i] # list of (cam_name, frame_idx)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected