<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
Hi Tom,
<div>I hope you’re having a good day.</div>
<div><br>
</div>
<div>
<blockquote type="cite">
<div class="WordSection1" style="page: WordSection1;">
<ol start="1" type="1" style="margin-bottom: 0in; margin-top: 0in;">
<li class="MsoListParagraph" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size: 11pt;">When face recognition or training is happening, will digiKam write a face region to the metadata if the face has already been manually tagged? In other words, will it duplicate an existing tag and region?</span></li></ol>
</div>
</blockquote>
</div>
<div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">digiKam shouldn’t duplicate the face tag and region.  We do a few checks for overlapping regions and ignore the automatically found region if it overlaps with an existing region.</span></div>
<div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br>
</span></div>
<div>
<blockquote type="cite">
<div class="WordSection1" style="page: WordSection1;">
<ol start="1" type="1" style="margin-bottom: 0in; margin-top: 0in;">
<li class="MsoListParagraph" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size: 11pt;">I manually tag heads rather than faces, e.g. the rectangle I draw around someone might contain a face, a blurred face, a slightly obscured face, or the back of someone’s head. Can the training algorithm distinguish among these
 and use only reliable data? Does the Face Image Quality Assessment cull instances like these? If it doesn’t or can’t, do I need to move these tagged instances to the Ignored category?</span></li></ol>
</div>
</blockquote>
Yes, it should use only reliable data.  There are multiple checks in place such as checking for noise, blur, and properly extracted face metrics.  All checks have to pass before we use a face for training, regardless if it was automatically found or manually
 added.</div>
<div><br>
</div>
<div>
<blockquote type="cite">
<div class="WordSection1" style="page: WordSection1;">
<ol start="1" type="1" style="margin-bottom: 0in; margin-top: 0in;">
<li class="MsoListParagraph" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size: 11pt;">Is there a setting where the training algorithm will only train within the range of clear full-frontal to profile faces (e.g. not partially obscured, blurred, etc.)?</span></li></ol>
</div>
</blockquote>
I think most of this question is answered in my previous reply, but partial view face and profile faces are useful to the algorithm to recognize the person in similar poses, so they can potentially be used for training.  This shouldn’t degrade the classifier
 (matching algorithm).</div>
<div><br>
</div>
<div>
<blockquote type="cite">
<div class="WordSection1" style="page: WordSection1;">
<ol start="1" type="1" style="margin-bottom: 0in; margin-top: 0in;">
<li class="MsoListParagraph" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size: 11pt;">In a previous face recognition run where the accuracy was set to 7, the algorithm detected many unrecognized faces. For the most part, it put these in the Unknown category. However, for one particular face it claimed recognition
 of previously tagged faces that weren’t even close to the face in question. Is this because the training data for that particular face was wonky? Is there a way to retrain for a single person/face?</span></li></ol>
</div>
</blockquote>
Yes. I’ve seen this before where one face for some unexplained reason is “wonky”.  I’ve tried multiple times to reproduce the “wonkiness”, but have been unsuccessful so far.</div>
<div><br>
</div>
<div>
<blockquote type="cite">
<div class="WordSection1" style="page: WordSection1;">
<ol start="1" type="1" style="margin-bottom: 0in; margin-top: 0in;">
<li class="MsoListParagraph" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size: 11pt;">What happens if I set the face detection and recognition accuracy to 100%? Will it recognize anything?</span></li></ol>
</div>
</blockquote>
Setting the face accuracy to 10 isn’t setting it to 100%.  There is a usable range for every AI/ML model, and almost never do we set anything to 100%. When you set the facial recognition threshold to 10, you’re actually setting the confidence factor threshold
 returned from the model to about 86% for YuNet (detection) and 61% for SFace (recognition).  Similarly, setting the accuracy to 0 isn’t setting the it 0%.  Extensive testing has shown that anything above these thresholds doesn’t improve accuracy, but does
 increase false negatives (should be a match, but is rejected). If you really want to get into the weeds, search for a file called dnnmodels.conf in your digiKam program directory. This will show you many of the under-the-covers settings used.</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Mike<br id="lineBreakAtBeginningOfMessage">
<div><br>
<blockquote type="cite">
<div>On May 8, 2025, at 4:55 PM, Tom Cunningham <TWCunningham627@outlook.com> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div style="margin: 0in 0in 0in 0.5in; font-size: 12pt; font-family: Calibri, sans-serif; text-indent: -0.25in;">
<span style="font-size: 11pt;">This is for digiKam 8.6.0 under Windows 11.<o:p></o:p></span></div>
<div style="margin: 0in 0in 0in 0.5in; font-size: 12pt; font-family: Calibri, sans-serif; text-indent: -0.25in;">
<o:p> </o:p></div>
<ol start="1" type="1" style="margin-bottom: 0in; margin-top: 0in;">
<li class="MsoListParagraph" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size: 11pt;">When face recognition or training is happening, will digiKam write a face region to the metadata if the face has already been manually tagged? In other words, will it duplicate an existing tag and region?<o:p></o:p></span></li><li class="MsoListParagraph" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size: 11pt;">I manually tag heads rather than faces, e.g. the rectangle I draw around someone might contain a face, a blurred face, a slightly obscured face, or the back of someone’s head. Can the training algorithm distinguish among these
 and use only reliable data? Does the Face Image Quality Assessment cull instances like these? If it doesn’t or can’t, do I need to move these tagged instances to the Ignored category?<o:p></o:p></span></li><li class="MsoListParagraph" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size: 11pt;">Is there a setting where the training algorithm will only train within the range of clear full-frontal to profile faces (e.g. not partially obscured, blurred, etc.)?<o:p></o:p></span></li><li class="MsoListParagraph" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size: 11pt;">In a previous face recognition run where the accuracy was set to 7, the algorithm detected many unrecognized faces. For the most part, it put these in the Unknown category. However, for one particular face it claimed recognition
 of previously tagged faces that weren’t even close to the face in question. Is this because the training data for that particular face was wonky? Is there a way to retrain for a single person/face?<o:p></o:p></span></li><li class="MsoListParagraph" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size: 11pt;">What happens if I set the face detection and recognition accuracy to 100%? Will it recognize anything?<o:p></o:p></span></li></ol>
<div style="margin: 0in 0in 0in 0.25in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size: 11pt;"><o:p> </o:p></span></div>
<div style="margin: 0in 0in 0in 0.25in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size: 11pt;">Thanks for any help you can provide.<o:p></o:p></span></div>
<div style="margin: 0in 0in 0in 0.25in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size: 11pt;"><o:p> </o:p></span></div>
<div style="margin: 0in 0in 0in 0.25in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size: 11pt;">Take care,<o:p></o:p></span></div>
<div style="margin: 0in 0in 0in 0.25in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size: 11pt;"><o:p> </o:p></span></div>
<div style="margin: 0in 0in 0in 0.25in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size: 11pt;">Tom</span></div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>