MCPcopy Index your code
hub / github.com/PaddlePaddle/PaddleDetection / postprocess

Method postprocess

deploy/python/infer.py:158–165  ·  view source on GitHub ↗
(self, inputs, result)

Source from the content-addressed store, hash-verified

156 return inputs
157
158 def postprocess(self, inputs, result):
159 # postprocess output of predictor
160 np_boxes_num = result['boxes_num']
161 assert isinstance(np_boxes_num, np.ndarray), \
162 '`np_boxes_num` should be a `numpy.ndarray`'
163
164 result = {k: v for k, v in result.items() if v is not None}
165 return result
166
167 def filter_box(self, result, threshold):
168 np_boxes_num = result['boxes_num']

Callers 3

predict_image_sliceMethod · 0.95
predict_imageMethod · 0.95
_forwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected