Skip to content

Commit

Permalink
Update rec_img_aug.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eshoyuan committed Aug 30, 2022
1 parent 3a3fca3 commit 1005aaa
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ppocr/data/imaug/rec_img_aug.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,7 @@ def __init__(self,

def __call__(self, data):
img = data['image']
if self.infer_mode and self.character_dict_path is not None:
norm_img, valid_ratio = resize_norm_img_chinese(img,
self.image_shape)
else:
norm_img, valid_ratio = resize_norm_img(img, self.image_shape,
norm_img, valid_ratio = resize_norm_img(img, self.image_shape,
self.padding)
data['image'] = norm_img
data['valid_ratio'] = valid_ratio
Expand Down

0 comments on commit 1005aaa

Please sign in to comment.