stefanklut / laypa

Layout analysis to find layout elements in documents (similar to P2PaLA)
MIT License
17 stars 5 forks source link

multithreading cpu training #18

Open rabeeqasem opened 10 months ago

rabeeqasem commented 10 months ago

how can we define in the YAML file the multi treathreading CPU and the number of workers to train ?

stefanklut commented 10 months ago

If you are training on CPU, I am not sure if multi threading is supported by detectron2. I am using their launch function for splitting the work over multiple GPUs. Perhaps you can find more in their documentation. To set the number of workers for the dataloader use:

DATALOADER:
  NUM_WORKERS: 16