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

Method loadCats

data/coco/PythonAPI/pycocotools/coco.py:211–220  ·  view source on GitHub ↗

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

(self, ids=[])

Source from the content-addressed store, hash-verified

209 return [self.anns[ids]]
210
211 def loadCats(self, ids=[]):
212 """
213 Load cats with the specified ids.
214 :param ids (int array) : integer ids specifying cats
215 :return: cats (object array) : loaded cat objects
216 """
217 if _isArrayLike(ids):
218 return [self.cats[id] for id in ids]
219 elif type(ids) == int:
220 return [self.cats[ids]]
221
222 def loadImgs(self, ids=[]):
223 """

Callers 2

showAnnsMethod · 0.95
class_nameMethod · 0.80

Calls 1

_isArrayLikeFunction · 0.85

Tested by

no test coverage detected