Bug 440555 - clear/Rebuilding face training data force all DB metadata to be written to images again
Summary: clear/Rebuilding face training data force all DB metadata to be written to im...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Maintenance-Faces (other bugs)
Version First Reported In: 7.4.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-03 13:41 UTC by Theliel
Modified: 2021-08-03 18:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 7.4.0
Sentry Crash Report:


Attachments
Maintenance Window with options selected (97.88 KB, image/png)
2021-08-03 14:05 UTC, Theliel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Theliel 2021-08-03 13:41:07 UTC
SUMMARY
Every time the training data for facial identification is cleaned and rebuilt, DigiKam forces a resynchronization of all the metadata from the database to the images, in essence, the same result that would be obtained by selecting this option in the maintenance options. Work fine on 7.3.0


STEPS TO REPRODUCE
1. Go to Tool/Maintenance
2. Tick only Clean and Rebuild training data
3. Accept

OBSERVED RESULT
theoretically begins to clean and rebuild the database, but at the same time begins to rewrite all the metadata of the files from the DigiKam database too.


EXPECTED RESULT
It should clean and rebuild only the training data for facial identification 


SOFTWARE/OS VERSIONS
Windows: Win10 21h1
Comment 1 Maik Qualmann 2021-08-03 13:50:29 UTC
I don't think anything has changed in digiKam since version 7.3.0. You will simply have activated the option to syncronize the metadata in the maintenance dialog. The activated options are saved.

Maik
Comment 2 Maik Qualmann 2021-08-03 13:56:57 UTC
Strange problem, can be reproduced here ...

Maik
Comment 3 Maik Qualmann 2021-08-03 14:03:31 UTC
The cause will be this commit:

https://invent.kde.org/graphics/digikam/-/commit/0bbcbe94f5e67c34290486f03c9d66c75072928e

Maik
Comment 4 Theliel 2021-08-03 14:05:46 UTC
Created attachment 140483 [details]
Maintenance Window with options selected
Comment 5 Maik Qualmann 2021-08-03 18:01:40 UTC
Git commit 8051c1e69c40c6d2207bb99cc0e26c2e3a34a609 by Maik Qualmann.
Committed on 03/08/2021 at 18:00.
Pushed by mqualmann into branch 'master'.

fix writing tags in images when the face database is rebuilt
FIXED-IN: 7.4.0

M  +2    -1    NEWS
M  +3    -1    core/libs/database/tags/facetagseditor.cpp

https://invent.kde.org/graphics/digikam/commit/8051c1e69c40c6d2207bb99cc0e26c2e3a34a609