MCPcopy Create free account
hub / github.com/OpenDriveLab/OpenLane / loadAnns

Method loadAnns

eval/CIPO_evaluation/adapter.py:302–311  ·  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

300 return res
301
302 def loadAnns(self, ids=[]):
303 """
304 Load anns with the specified ids.
305 :param ids (int array) : integer ids specifying anns
306 :return: anns (object array) : loaded ann objects
307 """
308 if _isArrayLike(ids):
309 return [self.anns[id] for id in ids]
310 elif type(ids) == int:
311 return [self.anns[ids]]
312
313 def getAnnIds(self, imgIds=[], catIds=[], areaRng=[], iscrowd=None):
314 """

Callers 1

_prepareMethod · 0.80

Calls 1

_isArrayLikeFunction · 0.85

Tested by

no test coverage detected