Bug 501573 - "ignore face" doesn't work anymore
Summary: "ignore face" doesn't work anymore
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Workflow (show other bugs)
Version: 8.6.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-16 13:28 UTC by FloMUC
Modified: 2025-03-18 21:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 8.7.0
Sentry Crash Report:


Attachments
Logfile (117.87 KB, text/plain)
2025-03-16 19:31 UTC, FloMUC
Details
logfile (88.75 KB, text/plain)
2025-03-17 18:19 UTC, FloMUC
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FloMUC 2025-03-16 13:28:38 UTC
SUMMARY
"Ignored" Faces are not saved. 

STEPS TO REPRODUCE
1. install new version
2. database cleanup 
3. rebuild all training data
4. face recognition
5. mark unknown faces / false positives as "ignored"


OBSERVED RESULT
says "ignored", but after leaving the preview, the face bekomes unknown / false positive again.

EXPECTED RESULT
"ignored" faces are saved.

SOFTWARE/OS VERSIONS
Windows 11, digikam 8.6.0
Build Date: 14.03.2025 17:44
Build Architecture: x86_64


ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2025-03-16 16:08:40 UTC
I can't reproduce it; ignoring it in the preview works here. Ignored faces remain ignored even after rereading the metadata.

Please create a DebugView log from startup until a face is ignored, as described here for Windows:

https://www.digikam.org/contribute/#windows-host

Maik
Comment 2 FloMUC 2025-03-16 19:31:10 UTC
Created attachment 179477 [details]
Logfile

Start debugview
Start Digikam
Clean Faces Database & Rebuild Training Data
Face recogition
** some coincidential USB-Problems here. Nothing to do with digikam **
Add some face tags --> working
ignore faces --> not working
(no actions logged at this instant)
** stopped logging **
Comment 3 Maik Qualmann 2025-03-17 07:14:23 UTC
Unfortunately, the log contains more messages from other programs than from digiKam. Have you enabled internal debugging in the digiKam settings under Miscellaneous -> System and restarted digiKam?

Maik
Comment 4 FloMUC 2025-03-17 18:19:38 UTC
Created attachment 179506 [details]
logfile

Next try: Logging in digikam is activated

1. Starting Digikam (up to line 399)
2. Ignoring 5 faces in different pictures (up to line 500) --> not working (face returns after return to preview, number of recomendations is unchanged)
3. Accepting 3 faces, write to file --> working 

End Logging

Thanks for your help ;-)
Comment 5 Maik Qualmann 2025-03-18 17:58:29 UTC
Git commit e8cd2971b1105d42d042cd3dbc0d1c9d1c6039b8 by Maik Qualmann.
Committed on 18/03/2025 at 17:57.
Pushed by mqualmann into branch 'master'.

test to identify the problem in the face confirmation
Related: bug 501684

M  +2    -1    core/utilities/facemanagement/items/facegroup.cpp

https://invent.kde.org/graphics/digikam/-/commit/e8cd2971b1105d42d042cd3dbc0d1c9d1c6039b8
Comment 6 Maik Qualmann 2025-03-18 21:02:40 UTC
Git commit e5f7c327a8877f57ab9a1a70b13a47f9c57fbba6 by Maik Qualmann.
Committed on 18/03/2025 at 21:01.
Pushed by mqualmann into branch 'master'.

fix race condition for ignore face
FIXED-IN: 8.7.0

M  +1    -1    NEWS
M  +4    -23   core/utilities/facemanagement/items/facegroup.cpp
M  +17   -6    core/utilities/facemanagement/pipelines/edit/facepipelineedit.cpp
M  +1    -1    core/utilities/facemanagement/pipelines/edit/facepipelineedit.h

https://invent.kde.org/graphics/digikam/-/commit/e5f7c327a8877f57ab9a1a70b13a47f9c57fbba6