Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Photos: Desktop client can't complete machine learning, but Android client can #4087

Open
taivlam opened this issue Nov 18, 2024 · 2 comments
Labels
- photos Relates to the Ente Photos

Comments

@taivlam
Copy link

taivlam commented Nov 18, 2024

Description

  1. Attempt to turn on machine learning on Ente Photos Desktop.
    • UX path: Open Ente Photos Desktop > Click on hamburger menu > Click on "Machine learning", under "Labs" > Toggle switch to "Enabled" for machine learning
  2. Try to leave the desktop client open, only for it to stay on 0 out of total number of items.
  3. Open Ente Photos on Android and navigate to the machine learning settings to turn machine learning on.
    • UX path: Open Ente Photos Android > Tap on hamburger menu > Tap on "General" > Tap on "Advanced" > Tap on "Machine learning" > Find both the "Enabled" and "Local indexing" switches toggled on already.
  4. Observe Ente Photos Android get past 0 items completed and the whole initialization of machine learning come to an end.

This is despite the warning in the Ente Photos mobile apps that it's better to use desktop to initialize machine learning, instead of the mobile app. (For this, I plugged in my Android device and used Wi-Fi during this process.)

I'm not sure why the desktop client got hung up when initializing machine learning, while the Android client was fine.

System info

  • Ente Photos on Android
    • GrapheneOS release 2024101200
    • Pixel 5a (barbet)
    • Ente Photos 0.9.58 from F-Droid
    • Logs: 2024-11-18.log
  • Ente Photos on Linux

Other details

On desktop, the settings are rather sparse:
screenshot1

while the settings on Android are more detailed (once the local models have been downloaded):
screenshot2

Version

1.7.6-1

What product are you using?

Ente Photos

What platform are you using?

Desktop - Linux

@taivlam taivlam added the triage label Nov 18, 2024
@taivlam taivlam changed the title Photos: Desktop client Photos: Desktop client can't complete machine learning, but Android client can Nov 18, 2024
@mnvr
Copy link
Member

mnvr commented Nov 19, 2024

This seems like a network issue in the routing between the ISP and Cloudflare (we use Cloudflare for proxying downloads), because the logs show that the desktop client is not able to download the images for indexing (no errors, the download just stalls until the app got restarted). The mobile client likely used a different (e.g. 5G) connection, so the download happened via a different network route.

Meanwhile, a workaround if you hit this issue again is to temporarily switch to a VPN or a different network where the desktop app is running.

@mnvr mnvr added - photos Relates to the Ente Photos and removed triage labels Nov 19, 2024
@mnvr
Copy link
Member

mnvr commented Nov 19, 2024

Also, if it happens again, it would be helpful to have a traceroute to see if there is some issue that can be spotted there

traceroute files.ente.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- photos Relates to the Ente Photos
Projects
None yet
Development

No branches or pull requests

2 participants