Trying to run free MFD model
Opened this issue · 1 comments
coderuhaan2004 commented
I am new to running such models. In your website, there's a code snippet given to run the model.
`python
from pix2text import Pix2Text, merge_line_texts
img_fp = './docs/examples/formula.jpg'
p2t = Pix2Text(analyzer_config=dict(model_name='mfd'))
outs = p2t(img_fp, resized_shape=608)
print(outs)
only_text = merge_line_texts(outs, auto_line_break=True)`
i tried to run this code as well as installed pix2text library but got this error.
Please guide me in running the model.
By the way i am using Google colab
breezedeus commented
If you are using onnxruntime-gpu, you need to use the T4 GPU runtime environment in colab