diff --git a/rapid_latex_ocr/utils.py b/rapid_latex_ocr/utils.py index c06fb70..5e73509 100644 --- a/rapid_latex_ocr/utils.py +++ b/rapid_latex_ocr/utils.py @@ -75,7 +75,7 @@ def minmax_size( ratios = [a / b for a, b in zip(img.size, self.max_dims)] if any([r > 1 for r in ratios]): size = np.array(img.size) // max(ratios) - img = img.resize(size.astype(int), Image.BILINEAR) + img = img.resize(tuple(size.astype(int)), Image.BILINEAR) if self.min_dims is not None: padded_size: List[Union[int, int]] = [