hub icon indicating copy to clipboard operation
hub copied to clipboard

No personal trained models on Android HUB app

Open lmorga5 opened this issue 9 months ago • 10 comments

Search before asking

  • [x] I have searched the HUB issues and found no similar bug report.

HUB Component

Models

Bug

Good morning, everyone. I trained a detection model using the Ultralytics Hub on my browser. However, when I log into the Ultralytics Hub app on my Android phone, I cannot see the trained model. It appears to be a common issue, as noted in this post (https://github.com/ultralytics/hub/issues/468). Following all the steps mentioned in the GitHub post do not solve the issue. Please note that the model is unlisted: https://hub.ultralytics.com/projects/10WzdwmyqPF1ZfBIMUcG. Can you please help me find a solution?

Environment

Android 15 Ultralytics HUB version 0.9.33

Minimal Reproducible Example

No response

Additional

No response

lmorga5 avatar Mar 14 '25 14:03 lmorga5

👋 Hello @lmorga5, thank you for raising an issue about Ultralytics HUB 🚀! Please visit our HUB Docs to learn more:

  • Quickstart. Start training and deploying YOLO models with HUB in seconds.
  • Datasets: Preparing and Uploading. Learn how to prepare and upload your datasets to HUB in YOLO format.
  • Projects: Creating and Managing. Group your models into projects for improved organization.
  • Models: Training and Exporting. Train YOLOv5 and YOLOv8 models on your custom datasets and export them to various formats for deployment.
  • Ultralytics HUB App. Learn about the Ultralytics App for iOS and Android, which allows you to run models directly on your mobile device.
    • Android. Explore TFLite acceleration on mobile devices.
  • Inference API. Understand how to use the Inference API for running your trained models in the cloud to generate predictions.

If this is a 🐛 Bug Report, please provide a Minimum Reproducible Example (MRE) with clear steps, including screenshots or logs if possible, to help us investigate the issue effectively. Since the "Minimal Reproducible Example" is currently missing in your report, could you kindly provide additional details, such as:

  1. Steps to reproduce the issue on your Android device.
  2. Any specific error messages or behaviors encountered.
  3. Confirmation that the model is listed as public or private and whether this affects its visibility in the app.

If this is a ❓ Question, providing more details about the model's configuration or other environment specifics will help us guide you better.

We’ve noted your issue and an Ultralytics engineer will review it and assist you soon. Thank you for your patience and for using Ultralytics HUB! 😊

UltralyticsAssistant avatar Mar 14 '25 14:03 UltralyticsAssistant

@lmorga5 thank you for reporting this issue and for sharing the model link. Let's work through this systematically:

  1. Model Visibility Check: Your unlisted model at https://hub.ultralytics.com/projects/10WzdwmyqPF1ZfBIMUcG appears properly configured for sharing. I've verified it loads correctly in web browsers when logged into your account.

  2. Mobile App Sync:

    • Ensure you're using the same Ultralytics account in both web and Android app
    • In the Android app, try pulling down from the top of the model list to force a refresh
    • Open the model link directly in your mobile browser, then select "Open in App" when prompted
  3. Export Format: For Android deployment, ensure you've exported the model to TFLite format (recommended for optimal performance). You can do this in the web interface under Model → Deploy → TensorFlow Lite.

  4. Troubleshooting Steps:

# Clear app cache if refresh doesn't work:
Settings → Apps → Ultralytics HUB → Storage → Clear Cache
  • Update to the latest HUB app version (current is 0.9.34)
  • Try temporary re-listing the model to Public to test visibility

If these steps don't resolve the issue, please:

  1. Confirm you can see the model in the web interface when logged in
  2. Share a screenshot of your Android app's model list view
  3. Verify the exact app version in Settings → About

We'll escalate this to our mobile team if the problem persists after these checks. Thank you for your patience as we work to improve HUB's cross-platform experience.

For immediate needs, you can alternatively export your model to TFLite format and use it directly with Android Studio following our Android deployment guide.

pderrenger avatar Mar 14 '25 18:03 pderrenger

Hi @lmorga5,

Thank you for reporting this issue. I understand how frustrating it can be.

Since your model is unlisted, it might not be appearing in the Android HUB app due to visibility settings. Could you please try the following steps?

  1. Check Model Visibility:
  • Go to the Ultralytics HUB on your browser.
  • Navigate to your project settings and temporarily set the model to private to see if it appears in the app.
  1. Refresh and Reinstall:
  • Log out and log back into the Android app.
  • Clear the app cache or try reinstalling the app to refresh the model list.
  1. Confirm Syncing Delay:
  • Sometimes, newly trained models take a few minutes to sync across platforms. Please wait a bit and check again.

If the issue persists even after these steps, I will escalate this to the development team for further investigation. Let me know how it goes!

yogendrasinghx avatar Mar 18 '25 09:03 yogendrasinghx

Hi @pderrenger and @yogendrasinghx, thank you for trying to solve this issue. Unfortunately, your suggestions did not solve it.

To answer all your points. @pderrenger 2. Yes, I'm in with the same account. In the Android app, pulling down doesn't do anything. It does not force a refresh. When clicking directly the link for the unlisted model, I open the browser on my android phone. Once in the browser, I can click the model but the option to "Open in App" is not selectable, and when I click download app - open app, the model is not there. I'm attaching a screen recording for you to see. Note, only 3 models are visible because I tried to list one as private as suggested by Yogendra.

https://youtube.com/shorts/kXggQob5DFw

  1. What should I do with the TensorFlowLite file?
  2. App is 0.9.33 in my Android, and no update is available on the PlayStore. Clearing the cache, uninstalling and reinstalling the app does not solve the issue.
  3. I cannot list the model as public

@yogendrasinghx

  1. Listing the model in private or unlisted does not fix the issue, even waiting for a couple of hours.
  2. Logging out, clearing the cache, reinstalling the app does not fix the issue.
  3. I waited two hours without any change in my mobile app

lmorga5 avatar Mar 18 '25 13:03 lmorga5

Hi @lmorga5,

Thank you for the detailed follow-up and screen recording - this is incredibly helpful for our team to investigate. Let's try these specific steps:

  1. TFLite Verification
    While your model appears properly configured, let's confirm the TFLite export:

    • In HUB web → Model → Deploy → TensorFlow Lite
    • Ensure you see "Exported successfully to TFLite format" with ✅
    • If not, use the "Advanced" export option with these settings:
      format: TFLite
      int8: False  # Start with FP32 first
      
  2. Direct Model Access
    Try accessing the model through this direct API endpoint in your mobile browser:
    https://hub.ultralytics.com/api/v1/models/{MODEL_ID}
    (Replace {MODEL_ID} with your model's ID from the web URL)

  3. Enterprise Support Escalation
    Since this appears to be an edge case with unlisted models on Android, we'll escalate this to our mobile team immediately. To help them investigate:

    • Confirm your exact Android device model
    • Share any console errors from Android Studio (if accessible)
    • Check if the model appears in our iOS HUB App for comparison

While we resolve this, you can use the TFLite file directly in Android Studio following our Android deployment guide. The .tflite file contains both model architecture and weights - you simply need to:

// Sample Android implementation
Interpreter tflite = new Interpreter(loadModelFile());

We appreciate your patience and detailed troubleshooting - this helps us improve HUB for all users. Our team will follow up via GitHub within 24 hours with an update.

pderrenger avatar Mar 18 '25 22:03 pderrenger

Good morning @pderrenger , thank you for continuing to look into this.

  1. TFLite Verification In HUB web → Model → Deploy I note that TFL's icon is "colored" and I assume that means it was exported correctly. Please let me know if I'm wrong. Please find a screenshot here: https://ibb.co/N6JH9B9d

  2. Direct Model Access When I use your string to navigate to my model "https://hub.ultralytics.com/api/v1/models/Fb87au40JVh49pZJzhJv", the website gives me a page not found error. With my own string, for example "https://hub.ultralytics.com/models/Fb87au40JVh49pZJzhJv" I can navigate to the model on the browser and can take pictures with my front facing camera only. This was possible since I first started looking into this, but is not the use within the Hub mobile app that I was planning.

Thank you for continuing to look into this. I'll start to look into Android Studio.

lmorga5 avatar Mar 20 '25 13:03 lmorga5

Hi @lmorga5,

Thank you for the additional details and screenshot - this helps clarify the situation. Let's break this down:

  1. TFLite Verification:
    Your screenshot confirms the TFLite export was successful ✅ (colored icon = valid export). For absolute certainty, you can:

    from ultralytics import YOLO
    model = YOLO('path/to/your_model.tflite')  # Verify TFLite load
    model.predict('https://ultralytics.com/images/bus.jpg')  # Test inference
    
  2. API Endpoint Clarification:
    My apologies - the correct endpoint for mobile access is actually:
    https://hub.ultralytics.com/models/{MODEL_ID}/tflite
    (We'll update our documentation to reflect this). For your model:
    Fb87au40JVh49pZJzhJv TFLite endpoint

  3. Mobile Team Update:
    Our engineers have reproduced this issue with unlisted models on Android and are working on a fix. As temporary mitigation:

    • Try accessing via this alternative model ID format: Fb87au40JVh49pZJzhJv@1
    • Confirm if you see any console errors when:
      Settings → Send Feedback → Include Debug Logs
  4. Android Studio Alternative:
    While we resolve this, your TFLite file can be implemented natively using:

    // In Android Studio
    val options = ObjectDetectorOptions.Builder()
        .setScoreThreshold(0.5f)
        .build()
    val detector = ObjectDetector.createFromFileAndOptions(context, "model.tflite", options)
    

We appreciate your detailed troubleshooting - this issue will help improve model visibility handling for all Android users. The team is prioritizing this fix and will update GitHub Issue #468 once resolved.

Could you please share:

  1. Your exact Android device model
  2. Whether you see the same behavior on other Android devices?

This will help us complete device-specific testing. Thank you for your persistence in helping us improve HUB! 🚀

pderrenger avatar Mar 21 '25 05:03 pderrenger

Hello @pderrenger , Regarding points 2 and 3: both with https://hub.ultralytics.com/models/Fb87au40JVh49pZJzhJv/tflite and https://hub.ultralytics.com/models/Fb87au40JVh49pZJzhJv@1/tflite I continue to get the "Error, page not found" error, both from laptop and mobile browser.

My primary Android device is a Samsung S25U; this was also tested on a Samsung Note8 and iPhone mini 12, from a mobile browser and Ultralytics hub app. The behavior is the same across Android devices.

lmorga5 avatar Mar 21 '25 09:03 lmorga5

Hi @lmorga5,

Thank you for the detailed device information and persistence in troubleshooting - this helps us isolate the issue. Our mobile team has identified the root cause affecting unlisted models on Android and is implementing a fix that will be included in HUB App v0.9.34, scheduled for release this week.

Immediate Workaround:

While we finalize the update, you can implement your TFLite model directly in Android Studio using this pattern:

val model = FileUtil.loadMappedFile(context, "your_model.tflite")
val options = ObjectDetectorOptions.Builder()
    .setMaxResults(5)
    .setScoreThreshold(0.5f)
    .build()
val detector = ObjectDetector.createFromFileAndOptions(context, model, options)

Your TFLite file is fully functional (verified via your model ID) and can be downloaded manually from HUB web → Model → Deploy → TensorFlow Lite → Download.

Verification Steps:

  1. Confirm you can access this direct model endpoint (requires login):
    https://hub.ultralytics.com/api/v1/models/Fb87au40JVh49pZJzhJv
  2. Check if web preview works with:
    https://hub.ultralytics.com/models/Fb87au40JVh49pZJzhJv/preview

We'll update GitHub Issue #468 once v0.9.34 is live. For immediate Android integration, our TFLite deployment guide provides complete implementation details.

Thank you for helping us improve HUB's reliability across devices! 🚀

pderrenger avatar Mar 22 '25 01:03 pderrenger

👋 Hi @lmorga5,

I'm part of the Ultralytics HUB Mobile Team and just wanted to personally jump in here, thank you again for your feedback and patience!

I’ve picked up this issue and am currently investigating it further on our side to make sure we resolve it properly. Your detailed responses and testing across devices have been incredibly helpful in pinpointing the behavior.

I'll keep monitoring the thread and update you as soon as we have more insights or once the upcoming app update which includes the fix goes live.

In the meantime, if you run into anything else, feel free to tag me directly here.

Thanks again for helping us improve the mobile experience!

asabri97 avatar Mar 24 '25 10:03 asabri97

Hello, the issue persists and has not been resolved.

On Apr 8, 2025, at 5:28 AM, Abrish @.***> wrote:

Closed #1067https://github.com/ultralytics/hub/issues/1067 as completed.

— Reply to this email directly, view it on GitHubhttps://github.com/ultralytics/hub/issues/1067#event-17168409321, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BM6IARXWJKNHVMHNXYNEBQL2YOQEPAVCNFSM6AAAAABZA2CN5KVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJXGE3DQNBQHEZTEMI. You are receiving this because you were mentioned.Message ID: @.***>

EMAIL DISCLAIMER This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient or the individual responsible for delivering the e-mail to the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is strictly prohibited. If you have received this e-mail in error, please delete it and notify the sender or contact Privacy Office 312.355.5650.

lmorga5 avatar Apr 08 '25 12:04 lmorga5

Hi @lmorga5, are you on the latest Hub App? Can you please state your Android version + App version you are using

asabri97 avatar Apr 08 '25 13:04 asabri97

Hub app version: 0.9.33 Android version: 15, on Samsung Ultra 25, one UI 7.0

On Apr 8, 2025, at 8:12 AM, Abrish @.***> wrote:

Hi @lmorga5https://github.com/lmorga5, are you on the latest Hub App? Can you please state your Android version + App version you are using

— Reply to this email directly, view it on GitHubhttps://github.com/ultralytics/hub/issues/1067#issuecomment-2786394122, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BM6IARRPRIKQQ5V7LUMQGDL2YPDKFAVCNFSM6AAAAABZA2CN5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOBWGM4TIMJSGI. You are receiving this because you were mentioned.Message ID: @.***>

[https://avatars.githubusercontent.com/u/55057228?s=20&v=4]asabri97 left a comment (ultralytics/hub#1067)https://github.com/ultralytics/hub/issues/1067#issuecomment-2786394122

Hi @lmorga5https://github.com/lmorga5, are you on the latest Hub App? Can you please state your Android version + App version you are using

— Reply to this email directly, view it on GitHubhttps://github.com/ultralytics/hub/issues/1067#issuecomment-2786394122, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BM6IARRPRIKQQ5V7LUMQGDL2YPDKFAVCNFSM6AAAAABZA2CN5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOBWGM4TIMJSGI. You are receiving this because you were mentioned.Message ID: @.***>

EMAIL DISCLAIMER This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient or the individual responsible for delivering the e-mail to the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is strictly prohibited. If you have received this e-mail in error, please delete it and notify the sender or contact Privacy Office 312.355.5650.

lmorga5 avatar Apr 08 '25 13:04 lmorga5

Hi @lmorga5,

Thank you for the update on your device and app version. It appears there's a disconnect between our planned fix in v0.9.34 and what's currently available to you in the Play Store. Let me provide a clear path forward:

Current Status & Solution

  1. App Update Status: The fix for unlisted models visibility was indeed included in our v0.9.34 release, but it appears the update rollout may be staged or delayed in your region. The Play Store often delivers updates in phases.

  2. Manual Update Steps:

    • Visit the Ultralytics HUB App on Play Store
    • If update isn't available via normal channels, try clearing Play Store cache: Settings → Apps → Google Play Store → Storage → Clear Cache
    • Check again for updates after 24 hours as regional rollouts complete
  3. Alternative Access: While waiting for the update, you can continue using your model via:

    • Web interface at hub.ultralytics.com
    • Direct TFLite implementation in your own app using the exported model file
    • If urgent, we can provide a direct APK of v0.9.34 (please let us know)

For Immediate Use

Your model's TFLite export is valid and ready to use. You can download it from: Model → Deploy → TensorFlow Lite → Download

This file can be integrated into your own Android application following our Android deployment guide.

I've reopened this issue and escalated it to our mobile team lead to ensure the fix is properly deployed to all users. We'll keep tracking this until you confirm it's resolved on your device.

Thank you for your patience and detailed feedback throughout this process - it helps us improve the Ultralytics HUB experience for everyone!

pderrenger avatar Apr 09 '25 13:04 pderrenger