Bug 436625

Summary: Face detection: Unchecking "Work on all processor cores" still uses all cpu cores
Product: [Applications] digikam Reporter: Paul Krause <paul_krause_1980>
Component: Faces-DetectionAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: minor CC: caulier.gilles, metzpinguin, paul_krause_1980
Priority: NOR    
Version First Reported In: 7.2.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 7.5.0
Sentry Crash Report:
Attachments: Terminal output with QT_LOGGING

Description Paul Krause 2021-05-05 12:36:55 UTC
Created attachment 138165 [details]
Terminal output with QT_LOGGING

SUMMARY
Digikam uses all cores for face detection, regardless of the "Work on all processor cores" checkbox.


STEPS TO REPRODUCE
1. Goto "people" tab
2. Select "Detect faces"
3. Uncheck "Work on all processor cores" if is checked
4. Push "Scan collection for faces"


OBSERVED RESULT
Digikam uses all cores / as many threads as cores are avaible


EXPECTED RESULT
Only one core / thread is used


ADDITIONAL INFORMATION
Using the "YOLO v3" model or not does not matter.
Output of QT_LOGGING attached.
Thank you!
Comment 1 Maik Qualmann 2021-05-05 12:45:47 UTC
Maybe we should change the label of the option, but we will definitely only start a face worker thread. Of course, e.g. internally OpenCV can use all processor cores for arithmetic operations, we have little influence on that. You can see that only one thread is started from this message:

digikam.general: Action Thread run  1  new jobs

Maik