(self, inputs, result)
| 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'] |
no outgoing calls
no test coverage detected