MCPcopy
hub / github.com/Duankaiwen/CenterNet / loadAnns

Method loadAnns

data/coco/PythonAPI/pycocotools/coco.py:200–209  ·  view source on GitHub ↗

Load anns with the specified ids. :param ids (int array) : integer ids specifying anns :return: anns (object array) : loaded ann objects

(self, ids=[])

Source from the content-addressed store, hash-verified

198 return list(ids)
199
200 def loadAnns(self, ids=[]):
201 """
202 Load anns with the specified ids.
203 :param ids (int array) : integer ids specifying anns
204 :return: anns (object array) : loaded ann objects
205 """
206 if _isArrayLike(ids):
207 return [self.anns[id] for id in ids]
208 elif type(ids) == int:
209 return [self.anns[ids]]
210
211 def loadCats(self, ids=[]):
212 """

Callers 2

_prepareMethod · 0.80
_extract_dataMethod · 0.80

Calls 1

_isArrayLikeFunction · 0.85

Tested by

no test coverage detected