MCPcopy Create free account
hub / github.com/SooLab/CGFormer / loadCats

Method loadCats

tools/refer.py:228–232  ·  view source on GitHub ↗
(self, cat_ids=[])

Source from the content-addressed store, hash-verified

226 return [self.Imgs[image_ids]]
227
228 def loadCats(self, cat_ids=[]):
229 if type(cat_ids) == list:
230 return [self.Cats[cat_id] for cat_id in cat_ids]
231 elif type(cat_ids) == int:
232 return [self.Cats[cat_ids]]
233
234 def getRefBox(self, ref_id):
235 ref = self.Refs[ref_id]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected