-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Invalid input type 'PdfDocument' #183
Comments
mac only support torch 2.2.2 now which makes it impossible to install the latest package. |
Did you happen to get the documentation for pdftext . I am not able to find one. If yes, then please share the same |
pdftext-0.3.7 |
The change in the repository is now taking the filename instead of the document object.. |
I am running marker_pdf on the Mac server, using torch=2.2.2, pdftext=0.3.10 and marker-pdf=0.2.6,python=3.11
|
I got the same issue on my Mac. I have resolved it by creating a new venv only installing PyTorch and marker then running the marker command by passing the input file path and output path only. |
My Mac has an Intel chip. Torch is only supported up to version 2.2.2. This version can only support up to marker version 0.2.6 and cannot support the latest version. Marker-pdf 0.2.14 depends on torch < 3.0.0 and >= 2.2.2. Surya-ocr 0.4.12 depends on torch < 3.0.0 and >= 2.3.0. Therefore, I need to change an environment for deployment on my side. |
I've read above but still don't know which version combination fixes it. I have an env with torch==2.2.2 , marker_pdf=0.2.6 , pdftext==0.3.10 , and surya-ocr==0.4.5 but I still get this error! In case it's relevant, I installed all of the above via |
Mac(intel) pdftext-0.3.7,torch==2.2.2,marker_pdf=0.2.6 Success!Thank you |
Encountering the same issue on an x86 Mac. |
|
See #235 (comment) |
This was a version mismatch, it should be fixed if you're using the version of pdftext specified in the latest marker |
dictionary_output()
function from pdftext only accept anpdf_path
parameter, but here you passed in an doc object.The text was updated successfully, but these errors were encountered: