Skip to content

Commit

Permalink
revert modified for predict_rec
Browse files Browse the repository at this point in the history
  • Loading branch information
tink2123 committed Jun 30, 2020
1 parent 1c8cddf commit 2cc1d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/infer/predict_rec.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def resize_norm_img(self, img, max_wh_ratio):
imgC, imgH, imgW = self.rec_image_shape
assert imgC == img.shape[2]
if self.character_type == "ch":
imgW = int(math.ceil(32 * max_wh_ratio))
imgW = int((32 * max_wh_ratio))
h, w = img.shape[:2]
ratio = w / float(h)
if math.ceil(imgH * ratio) > imgW:
Expand Down

0 comments on commit 2cc1d00

Please sign in to comment.