lukas-blecher / LaTeX-OCR

pix2tex: Using a ViT to convert images of equations into LaTeX code.
https://lukas-blecher.github.io/LaTeX-OCR/
MIT License
12.7k stars 1.03k forks source link

`tuple` is missing in `cli.py` #387

Open akshay6893 opened 4 months ago

akshay6893 commented 4 months ago

in cli.py, in minmax_size fucntion - This line -

img = img.resize(size.astype(int), Image.BILINEAR)

Instead should be -

img = img.resize( tuple(size.astype(int)), Image.BILINEAR)