MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / dumpOdf

Method dumpOdf

PATH/core/solvers/utils/detools/box.py:244–251  ·  view source on GitHub ↗

:meth: dump the object into a dict :return: a dict with "box" and "score" keys

(self)

Source from the content-addressed store, hash-verified

242 self.score = odf["score"]
243 self.matched = 0
244 def dumpOdf(self):
245 """
246 :meth: dump the object into a dict
247 :return: a dict with "box" and "score" keys
248 """
249 odf = super(DetBox, self).dumpOdf()
250 odf["score"] = self.score
251 return odf
252
253 def _getDrawColor(self):
254 """

Callers 2

boxes_dumpMethod · 0.95
dumpOdfMethod · 0.45

Calls

no outgoing calls

Tested by 1

boxes_dumpMethod · 0.76