fix conflicts

This commit is contained in:
LDOUBLEV 2020-12-09 20:44:43 +08:00
parent e7ad27c399
commit 7cce85cc5c
1 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ 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]
if self.dilation_kernel is not None:
mask = cv2.dilate(
np.array(segmentation[batch_index]).astype(np.uint8),
@ -148,7 +148,7 @@ class DBPostProcess(object):
else:
mask = segmentation[batch_index]
boxes, scores = self.boxes_from_bitmap(pred[batch_index], mask,
width, height)
src_w, src_h)
boxes_batch.append({'points': boxes})
return boxes_batch