marker icon indicating copy to clipboard operation
marker copied to clipboard

I get this error : Number of processes must be at least 1 for multi gplu convertion

Open issa2k23 opened this issue 2 years ago • 2 comments

I am using windows 10 and this is the command : marker in-pdf out-pdf --num_chunks 2 --chunk_idx 2 --workers 15

Converting 0 pdfs in chunk 3/2 with 0 processes, and storing in F:\PDF-Marker\out-pdf Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in run_code File "D:\AI\anaconda3\envs\Marker\Scripts\marker.exe_main.py", line 7, in File "D:\AI\anaconda3\envs\Marker\Lib\site-packages\convert.py", line 123, in main with mp.Pool(processes=total_processes, initializer=worker_init, initargs=(model_lst,)) as pool: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\AI\anaconda3\envs\Marker\Lib\multiprocessing\context.py", line 119, in Pool return Pool(processes, initializer, initargs, maxtasksperchild, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\AI\anaconda3\envs\Marker\Lib\multiprocessing\pool.py", line 205, in init raise ValueError("Number of processes must be at least 1") ValueError: Number of processes must be at least 1

issa2k23 avatar Jun 11 '24 15:06 issa2k23

Are the files in a subdirectory inside of "in-pdf"? It needs to be in that main directory you specify.

joeamroo avatar Jun 11 '24 16:06 joeamroo

yes they are, when I run the single file conversion just works. but I have this problem when I want to run for multi files (in a directory) and multi-gpu

issa2k23 avatar Jun 11 '24 19:06 issa2k23