MCPcopy Create free account
hub / github.com/UX-Decoder/Semantic-SAM / __len__

Method __len__

datasets/build.py:76–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

74 yield {key: batch[i] for i, key in enumerate(self.dataset_names)}
75
76 def __len__(self):
77 return len(getattr(self, self.key_dataset))
78
79def filter_images_with_only_crowd_annotations(dataset_dicts, dataset_names):
80 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected