marker icon indicating copy to clipboard operation
marker copied to clipboard

"Unrecognized arguments" using positional arguments

Open 3raxton opened this issue 1 year ago • 3 comments

Hey @VikParuchuri, thanks for the great work on this, I appreciate it! I am working with marker and I am facing the following traceback regarding unrecognized arguments that I cannot resolve. The issue with this is that the input arguments are directly suggested by marker. I'm not sure how to proceed. Any insight helps, thank you!

Python version: 3.10.15

SUMN marker -h          
usage: marker [-h] [--chunk_idx CHUNK_IDX] [--num_chunks NUM_CHUNKS] [--max MAX]
              [--workers WORKERS] [--metadata_file METADATA_FILE]
              [--min_length MIN_LENGTH]
              in_folder out_folder

Convert multiple pdfs to markdown.

positional arguments:
  in_folder             Input folder with pdfs.
  out_folder            Output folder

options:
  -h, --help            show this help message and exit
  --chunk_idx CHUNK_IDX
                        Chunk index to convert
  --num_chunks NUM_CHUNKS
                        Number of chunks being processed in parallel
  --max MAX             Maximum number of pdfs to convert
  --workers WORKERS     Number of worker processes to use
  --metadata_file METADATA_FILE
                        Metadata json file to use for filtering
  --min_length MIN_LENGTH
                        Minimum length of pdf to convert
SUMN marker in_folder /Users/Prized/Desktop/un out_folder /Users/Prized/Desktop/un2  
usage: marker [-h] [--chunk_idx CHUNK_IDX] [--num_chunks NUM_CHUNKS] [--max MAX]
              [--workers WORKERS] [--metadata_file METADATA_FILE]
              [--min_length MIN_LENGTH]
              in_folder out_folder
marker: error: unrecognized arguments: out_folder /Users/Prized/Desktop/un2

3raxton avatar Dec 14 '24 01:12 3raxton

A quick note, I have also tried the marker_single command with partial success but no output. When using this command, the traceback reveals an issue with my folder structure used by marker. I do not know how to proceed with this traceback.

marker_single /Users/Prized/Desktop/un.pdf output /Users/Prized/Desktop/un   
usage: marker_single [-h] [--max_pages MAX_PAGES] [--langs LANGS]
                     [--batch_multiplier BATCH_MULTIPLIER]
                     filename output
marker_single: error: unrecognized arguments: /Users/Prized/Desktop/un

3raxton avatar Dec 14 '24 01:12 3raxton

@VikParuchuri any ideas how I could resolve this?

3raxton avatar Jan 19 '25 21:01 3raxton

@VikParuchuri Please update the main readme so that other people can understand this project and potentially help you answer/resolve some of these questions and issues.

LordKayBanks avatar Feb 13 '25 18:02 LordKayBanks