VikParuchuri / marker

Convert PDF to markdown quickly with high accuracy
https://www.datalab.to
GNU General Public License v3.0
14.65k stars 764 forks source link

Google Colab notebook? #104

Open yachty66 opened 2 months ago

yachty66 commented 2 months ago

Did anyone make a Google Colab for this? It would be quite useful because someone wouldn't need to go through all the installations of dependencies.

PhunkyBob commented 1 month ago

Here is my Google Colab for using it with GPU support:

!pip3 install torch torchvision torchaudio
!pip install marker-pdf
!marker_single /path/to/file.pdf /path/to/output/folder --batch_multiplier 2

And with CPU only:

!pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
!pip install marker-pdf
!marker_single /path/to/file.pdf /path/to/output/folder --batch_multiplier 2

Don't bother with the "PIL" error message.

Chrissi2802 commented 1 month ago

The question has been answered, I propose to close this issue. @VikParuchuri Maybe you can add the suggestion in the README.