提交 d42bf7a0 编写于 作者: M MissPenguin

fix db postprocess

上级 661e459e
......@@ -138,9 +138,9 @@ class DBPostProcess(object):
boxes_batch = []
for batch_index in range(pred.shape[0]):
height, width = shape_list[batch_index]
src_h, src_w, ratio_h, ratio_w = shape_list[batch_index]
boxes, scores = self.boxes_from_bitmap(
pred[batch_index], segmentation[batch_index], width, height)
pred[batch_index], segmentation[batch_index], src_w, src_h)
boxes_batch.append({'points': boxes})
return boxes_batch
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册