Bug 507909 - Change location of AI model files download
Summary: Change location of AI model files download
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Setup-Misc (other bugs)
Version First Reported In: 8.7.0
Platform: Microsoft Windows Microsoft Windows
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-05 17:08 UTC by crowfunder
Modified: 2025-08-06 20:13 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description crowfunder 2025-08-05 17:08:38 UTC
SUMMARY
It would be amazing to add an option to change the directory in which AI model files will reside. My main drive with LocalFiles is pretty small and I'd like to download the model files onto another drive.

STEPS TO REPRODUCE
1. Attempt to download AI model files.
2. Download path is permanently set to Appdata/Local/digikam

OBSERVED RESULT
Unable to change the model files download path

EXPECTED RESULT
Ability to change the path where the model files will reside.

SOFTWARE/OS VERSIONS
Windows: 11 23H2


ADDITIONAL INFORMATION
n/a
Comment 1 caulier.gilles 2025-08-05 18:16:20 UTC
+1 for me. We already talk this important feature...
Comment 2 Maik Qualmann 2025-08-05 18:18:04 UTC
Yes, it's on my TODO for digiKam-8.8.0.

Maik
Comment 3 crowfunder 2025-08-05 18:38:47 UTC
(In reply to Maik Qualmann from comment #2)
> Yes, it's on my TODO for digiKam-8.8.0.
> 
> Maik

Amazing, thanks!
Comment 4 Maik Qualmann 2025-08-06 18:45:14 UTC
Git commit 42f9047a0a4b6379e8931dd0fa494953a29bbd7a by Maik Qualmann.
Committed on 06/08/2025 at 18:43.
Pushed by mqualmann into branch 'master'.

add option to configure Face Engine model data path in the digikam_systemrc
It is also possible to have a data package in the system or
user directory under Linux or Windows.
For Showfoto, the digikam_systemrc is also used for the model
data path to avoid duplicate downloads.
Configuration in the GUI follows...

M  +2    -3    core/libs/dnnmodelmanager/dnnmodelbase.cpp
M  +3    -3    core/libs/imgqsort/detectors/aesthetic_detector.cpp
M  +5    -6    core/utilities/setup/downloader/filesdownloader.cpp
M  +30   -0    core/utilities/setup/misc/systemsettings.cpp
M  +6    -1    core/utilities/setup/misc/systemsettings.h

https://invent.kde.org/graphics/digikam/-/commit/42f9047a0a4b6379e8931dd0fa494953a29bbd7a
Comment 5 Maik Qualmann 2025-08-06 20:00:38 UTC
Git commit 102b643b6132ee5587563d721d31e80f0af32e6e by Maik Qualmann.
Committed on 06/08/2025 at 19:59.
Pushed by mqualmann into branch 'master'.

add GUI option to configure Faces Engine model data path
FIXED-IN: 8.8.0

M  +1    -1    NEWS
M  +79   -34   core/utilities/setup/downloader/filesdownloader.cpp
M  +1    -0    core/utilities/setup/downloader/filesdownloader.h

https://invent.kde.org/graphics/digikam/-/commit/102b643b6132ee5587563d721d31e80f0af32e6e
Comment 6 Maik Qualmann 2025-08-06 20:01:56 UTC
We should consider whether, if files are present in the old location, we should copy them to the new one.

Maik
Comment 7 crowfunder 2025-08-06 20:13:07 UTC
(In reply to Maik Qualmann from comment #6)
> We should consider whether, if files are present in the old location, we
> should copy them to the new one.
> 
> Maik

Perhaps an option in the settings to migrate the model files into another directory.