Bug 495027 - downloading face detection files fails. Probably a CDN issue ?
Summary: downloading face detection files fails. Probably a CDN issue ?
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Engine (show other bugs)
Version: 8.4.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-19 07:12 UTC by simonmcnair
Modified: 2024-10-23 10:00 UTC (History)
3 users (show)

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


Attachments
yolov3-wider_16000.weights (78.04 KB, image/png)
2024-10-19 07:12 UTC, simonmcnair
Details
yolov5x_batch_16_s320.onnx (79.40 KB, image/png)
2024-10-19 07:12 UTC, simonmcnair
Details
resnet50.onnx (74.28 KB, image/png)
2024-10-19 07:12 UTC, simonmcnair
Details

Note You need to log in before you can comment on or make changes to this bug.
Description simonmcnair 2024-10-19 07:12:04 UTC
Created attachment 175013 [details]
yolov3-wider_16000.weights

On installing Digikam it fails to download some of the face recognition files but downloads others.  Failing files are:

yolov3-wider_16000.weights
yolov5x_batch_16_s320.onnx
resnet50.onnx

Manually downloading the files and placing them in config/.local/share/digikam/facesengine works.

In fact I downloaded them from ukfast.co.uk which is weird since that is where the error is.  Maybe just a broken path looking in

https://mirrors.ukfast.co.uk/sites/kde.org/files/digikam/facesengine/
instead of
https://mirrors.ukfast.co.uk/sites/kde.org/files/digikam/autotags/

may just affect mirrors or certain cdn's I don't know.
Comment 1 simonmcnair 2024-10-19 07:12:30 UTC
Created attachment 175014 [details]
yolov5x_batch_16_s320.onnx
Comment 2 simonmcnair 2024-10-19 07:12:51 UTC
Created attachment 175015 [details]
resnet50.onnx
Comment 3 Maik Qualmann 2024-10-19 09:31:19 UTC
Unfortunately, we have no influence on the mirror servers. If there are any problems, we have to report the server in question to the KDE admins. We once used alternative, well-known, good servers as a fallback solution, but this was not viewed favorably by the KDE admins.

Maik
Comment 4 caulier.gilles 2024-10-19 09:34:39 UTC
I erased all my local models files and restarted digiKam. Here from France, all files are downloaded properly.

Gilles Caulier
Comment 5 simonmcnair 2024-10-20 11:26:19 UTC
Just because the cdn in france works it does not mean the issue is resolved ...  If you used the uk mirror from ukfast and it worked then it would be resolved.
Comment 6 Maik Qualmann 2024-10-21 18:32:56 UTC
Git commit ed11803b39a1a6fd377cc3e8ef03a94ba674cf69 by Maik Qualmann.
Committed on 21/10/2024 at 18:32.
Pushed by mqualmann into branch 'master'.

add user agent string to identify yourself as a browser

M  +6    -1    core/utilities/setup/downloader/filesdownloader.cpp

https://invent.kde.org/graphics/digikam/-/commit/ed11803b39a1a6fd377cc3e8ef03a94ba674cf69
Comment 7 Maik Qualmann 2024-10-21 18:48:42 UTC
Hi Ben,

sorry for linking you here. Can we blacklist "https://mirrors.ukfast.co.uk/sites/kde.org/files/" or is there no alternative in UK. I tested it here from Germany via browser, the server is really very slow with timeout.

Maik
Comment 8 Ben Cooksley 2024-10-22 10:09:57 UTC
I have performed a test of the mirror in question and it both appears to be responsive and delivering decent speeds for the download from my location (half way around the world from the mirror in NZ). I would therefore expect clients based in the UK / Europe to have significantly better speeds than me.

yolov3-wider_16000.weights   100%[=====>] 234.89M  5.28MB/s    in 55s     
2024-10-22 23:06:35 (4.26 MB/s) - ‘yolov3-wider_16000.weights’ saved [246305388/246305388]

PING 46.37.189.155 (46.37.189.155) 56(84) bytes of data.
64 bytes from 46.37.189.155: icmp_seq=1 ttl=45 time=353 ms
64 bytes from 46.37.189.155: icmp_seq=2 ttl=45 time=379 ms

I was using IPv4 though - please check with IPv6 as many ISPs often have very poor / low quality implementations of IPv6 which can manifest themselves like this.
Comment 9 Maik Qualmann 2024-10-22 19:15:32 UTC
The server is very dependent on the time of day, at least from Germany. Tested today at around 11:00 UTC, the speed was OK. Now at 19:00 UTC, it was already under 100KB/s in some places.

@simonmcnair@gmail.com: So you will have to try at different times. The download does not have to be repeated for each new digiKam version. However, the upcoming digiKam-8.5.0 version will use improved face detection/recognition models, which will require another download.

Maik
Comment 10 Ben Cooksley 2024-10-23 10:00:52 UTC
In terms of the available mirrors, i'm afraid this is the only mirror located in the UK.
See https://files.kde.org/?mirrorstats for details on the available mirrors.