VikParuchuri / marker

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

dictionary_output() got an unexpected keyword argument 'workers' #173

Open Lastofthefirst opened 1 month ago

Lastofthefirst commented 1 month ago

I get the following error when trying to convert a single file or batchusing the command in the readme such as:

marker_single /path/to/file.pdf /path/to/output/folder --batch_multiplier 2 --langs English

Traceback (most recent call last):
  File "/sd/marker/convert.py", line 55, in process_single_pdf
    full_text, images, out_metadata = convert_single_pdf(filepath, model_refs, metadata=metadata)
  File "/sd/marker/marker/convert.py", line 66, in convert_single_pdf
    pages, toc = get_text_blocks(
  File "/sd/marker/marker/pdf/extract_text.py", line 93, in get_text_blocks
    char_blocks = dictionary_output(fname, page_range=page_range, keep_chars=True, workers=settings.PDFTEXT_CPU_WORKERS)
TypeError: dictionary_output() got an unexpected keyword argument 'workers'