Load anns with the specified ids. :param ids (int array) : integer ids specifying anns :return: anns (object array) : loaded ann objects
(self, ids=[])
| 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 | """ |
no test coverage detected