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

Using private Trained Model on Android Mobile #489

Closed
1 task done
Shyamcme opened this issue Dec 11, 2023 · 12 comments
Closed
1 task done

Using private Trained Model on Android Mobile #489

Shyamcme opened this issue Dec 11, 2023 · 12 comments
Assignees
Labels
bug Something isn't working

Comments

@Shyamcme
Copy link

Search before asking

Question

I want to test my private model using my own android mobile. I have clicked on the export button, but in mobile it displays as 0% only. Anything i am missing out ?

Additional

No response

@Shyamcme Shyamcme added the question Further information is requested label Dec 11, 2023
Copy link

👋 Hello @Shyamcme, 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.
  • Integrations. Explore different integration options for your trained models, such as TensorFlow, ONNX, OpenVINO, CoreML, and PaddlePaddle.
  • Ultralytics HUB App. Learn about the Ultralytics App for iOS and Android, which allows you to run models directly on your mobile device.
    • iOS. Learn about YOLO CoreML models accelerated on Apple's Neural Engine on iPhones and iPads.
    • 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 screenshots and steps to reproduce your problem to help us get started working on a fix.

If this is a ❓ Question, please provide as much information as possible, including dataset, model, environment details etc. so that we might provide the most helpful response.

We try to respond to all issues as promptly as possible. Thank you for your patience!

@kalenmike
Copy link
Contributor

@Shyamcme It sounds like you have encountered a bug. Can you provide me the model id that you see in the URL on web? I will then see if I can see what has gone wrong.

@kalenmike kalenmike self-assigned this Dec 11, 2023
@kalenmike kalenmike added info needed bug Something isn't working and removed question Further information is requested labels Dec 11, 2023
@Shyamcme
Copy link
Author

Shyamcme commented Dec 12, 2023 via email

@Shyamcme
Copy link
Author

Screenshot 2023-12-12 223456

WhatsApp Image 2023-12-12 at 22 35 20

WhatsApp Image 2023-12-12 at 22 35 19 (2)

WhatsApp Image 2023-12-12 at 22 35 19 (1)

WhatsApp Image 2023-12-12 at 22 35 19

@UltralyticsAssistant
Copy link
Member

Thank you for providing the screenshots and additional information, @Shyamcme! It's quite helpful. From what you've described, it indeed seems like the download is not proceeding as expected on your mobile device.

To assist you better with this, could you please provide the specific model ID or the URL (not the image or link) from the web where you're trying to export the model? This ID is typically found in your web browser's address bar when you view your model on the Ultralytics HUB.

With that information, I can look into the issue more deeply and aim to provide a resolution. In the meantime, you might want to check your mobile network connection, ensure that no VPN or firewall is blocking the download, and that there's sufficient storage space on your device.

If these basic checks don't resolve the problem, please provide the model ID, and I'll take the next steps to troubleshoot the issue for you. Thanks for your patience! 😊

@Shyamcme
Copy link
Author

Shyamcme commented Dec 13, 2023

The URL link for the model is

(https://hub.ultralytics.com/models/O9DgTPFMceDLuddRBovm)

Also just to reiterate that the export is being shown as completed in the mobile app for pytorch, ONNX and Ultralytics Android. However the Hub web actually doesn't have an option of " Ultralytics Android" as an export option.

Sharing the screenshot of Mobile App and the web page both again just to emphasize please
Hope this will help....
Regards

WhatsApp Image 2023-12-13 at 21 43 46

Screenshot 2023-12-13 214534

@UltralyticsAssistant
Copy link
Member

Thank you for providing the model ID, @Shyamcme. I'll investigate this issue with the given model (O9DgTPFMceDLuddRBovm) and see what might be causing the download interruption on your mobile device.

It's also useful to know that you see the export as completed for different formats, but are missing the "Ultralytics Android" option on the HUB web version. I'll look into the discrepancy between the web and mobile app interfaces regarding export options as well.

Your diligence in providing these details is much appreciated! I'll work on resolving this as soon as possible so you can proceed with using your trained model on your Android device. Please bear with us while we troubleshoot. 🛠️

In the meantime, if you have any more information that might assist us in this process, feel free to add it. Your cooperation is invaluable. 🌟

@Shyamcme
Copy link
Author

Kalen... Great to see you in the livestream held tonight on YOLOV8.1 and thanks for the solution to my bug ... Cheers

@kalenmike
Copy link
Contributor

@Shyamcme Thanks for joining the livestream. In HUB Web you can see the app export in the preview tab:

https://hub.ultralytics.com/models/O9DgTPFMceDLuddRBovm?tab=preview

It looks like your model has been exported but is failing to download to the app. We are busy testing a new release of the app that should be released soon, it makes some changes to the android export. Once it is released you should be able to export again and download the model.

We hope to have this new version out tomorrow.

@RGBreinin
Copy link

I am having a similar issue with model : 1omqas0480ijGUwyoYzx
I was able to export it to both android and IOS apps, however upon using the Android app, the model fails to download at all; and simply loops with "downloading the model".

Using the IOS app, it downloaded successfully, but the preview does not identify anything (the preview within hub does however work as expected)

@UltralyticsAssistant
Copy link
Member

@RGBreinin i'm sorry to hear you're experiencing issues with your model (1omqas0480ijGUwyoYzx) on the Android app. It seems like there might be a problem with the download process within the app itself. As mentioned earlier, we are aware of some issues and are working on an update that should address these problems.

For the iOS app, if the model has downloaded but isn't identifying objects as expected, it could be related to the model's performance on the device or a compatibility issue. It's good to hear that the preview within the HUB works, which suggests that the model itself is functional.

Please keep an eye out for the upcoming app release, which should improve the export and download functionality. Once the new version is available, please try exporting and downloading your model again.

If you continue to face issues after the update, don't hesitate to reach out, and we'll be happy to assist further. Thank you for your patience and understanding. 🙏

@sergiossm
Copy link

Hey @RGBreinin is this still happening in the latest Android version of the app (0.9.24)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants