Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Python - How do I utilize ALL cores of my CPU in training my FaceRecognizer?

I'm currently training my FisherFaceRecognizer in Python and I noticed something strange. My processor is an Intel Core i5, and apparently only one of the cores is working in the training process - in the Task Manager the Python process also takes only 25% of the CPU usage. I think that using all four cores to train my FisherFaceRecognizer would make the training process faster.

That said, I heard some things concerning the whole 'Global Interpreter Lock', so is it possible to use all four cores of my i5 processor for the training process, possibly with the multiprocessing module?

Python - How do I utilize ALL cores of my CPU in training my FaceRecognizer?

I'm currently training my FisherFaceRecognizer in Python and I noticed something strange. My processor is an Intel Core i5, and apparently only one of the cores is working in the training process - in the Task Manager the Python process also takes only 25% of the CPU usage. I think that using all four cores to train my FisherFaceRecognizer would make the training process faster.

That said, I heard some things concerning the whole 'Global Interpreter Lock', so is it possible to use all four cores of my i5 processor for the training process, possibly with and if so, how?

EDIT: Would the multiprocessing module?module make it possible?