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

Method getRefBox

tools/refer.py:234–237  ·  view source on GitHub ↗
(self, ref_id)

Source from the content-addressed store, hash-verified

232 return [self.Cats[cat_ids]]
233
234 def getRefBox(self, ref_id):
235 ref = self.Refs[ref_id]
236 ann = self.refToAnn[ref_id]
237 return ann['bbox'] # [x, y, w, h]
238
239 def showRef(self, ref, seg_box='seg'):
240 ax = plt.gca()

Callers 2

showRefMethod · 0.95
prepare_datasetFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected