MCPcopy Create free account
hub / github.com/csuhan/OneLLM / __len__

Method __len__

eval/image_cap_cococap.py:34–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

32 self.datas = json.load(open('datasets/Eval/image/coco_cap/coco_karpathy_val.json'))
33
34 def __len__(self):
35 return len(self.datas)
36
37 def __getitem__(self, index):
38 data = self.datas[index]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected