Skip to content

images do not match error in the pad function? #76

@eduOS

Description

@eduOS

It seems that the sizes of the images don't match. Anyone else encountering this error?

Traceback (most recent call last):
  File "pix2tex.py", line 198, in <module>
    pred = call_model(args, *objs, img=img)
  File "pix2tex.py", line 84, in call_model
    input_image = pad(img).convert('RGB').copy()
  File "/mnt/lerner/ocr_latex/LaTeX-OCR/utils/utils.py", line 104, in pad
    padded.paste(im, im.getbbox())
  File "/opt/conda/lib/python3.8/site-packages/PIL/Image.py", line 1527, in paste
    self.im.paste(im, box)
ValueError: images do not match

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions