update predict_det

This commit is contained in:
WenmuZhou 2020-12-16 00:03:50 +08:00
parent 2ad0ca44cd
commit 41c2af4924
1 changed files with 3 additions and 1 deletions

View File

@ -177,8 +177,10 @@ class TextDetector(object):
preds['f_score'] = outputs[1]
preds['f_tco'] = outputs[2]
preds['f_tvo'] = outputs[3]
else:
elif self.det_algorithm == 'DB':
preds['maps'] = outputs[0]
else:
raise NotImplementedError
post_result = self.postprocess_op(preds, shape_list)
dt_boxes = post_result[0]['points']