Bug 504210

Summary: Trying to re-learn face recognition model prior downloading the CV model
Product: [Applications] digikam Reporter: Michał Byrecki <michal.byrecki>
Component: Setup-FirstRunAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version First Reported In: 8.6.0   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 8.7.0
Sentry Crash Report:

Description Michał Byrecki 2025-05-14 12:48:48 UTC
I've been using digikam from Debian's package (old version) and made a decision to download latest app image.
On the first run it throw a message, that the AI CV face recognition data is outdated and the model needs to be re-learned, asking to initiate the process.
I've confirmed, but since the newer model has not been yet downloaded, it crashed:

Digikam::DNNFaceDetectorYuNet::loadModels: Face detection model: YuNet not loaded
Digikam::DNNFaceDetectorYuNet::DNNFaceDetectorYuNet: Failed to load YuNet model
terminate called after throwing an instance of 'QUnhandledException'
  what():  std::exception

So, before prompting for re-learning the model, the newer model has to be downloaded first.
Comment 1 caulier.gilles 2025-05-14 13:01:55 UTC
I think this problem have been already reported and fixed in current 8.7.0 pre-release available here :

https://files.kde.org/digikam/
Comment 2 Michał Byrecki 2025-05-14 13:07:53 UTC
(In reply to caulier.gilles from comment #1)
> I think this problem have been already reported and fixed in current 8.7.0
> pre-release available here :
> 
> https://files.kde.org/digikam/
Ah, I haven't been using pre-release, but 8.6.0. If the problem has been already addressed the bug can be closed.