Skip to content

Commit

Permalink
fix bugs in DetResizeForTest
Browse files Browse the repository at this point in the history
  • Loading branch information
WenmuZhou committed Dec 21, 2020
1 parent 3a0090d commit d3bd510
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ppocr/data/imaug/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ def __init__(self, **kwargs):
if 'image_shape' in kwargs:
self.image_shape = kwargs['image_shape']
self.resize_type = 1
if 'limit_side_len' in kwargs:
elif 'limit_side_len' in kwargs:
self.limit_side_len = kwargs['limit_side_len']
self.limit_type = kwargs.get('limit_type', 'min')
if 'resize_long' in kwargs:
elif 'resize_long' in kwargs:
self.resize_type = 2
self.resize_long = kwargs.get('resize_long', 960)
else:
Expand Down

0 comments on commit d3bd510

Please sign in to comment.