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

#Android support #723

Closed
daggarwal01 opened this issue Aug 12, 2020 · 5 comments
Closed

#Android support #723

daggarwal01 opened this issue Aug 12, 2020 · 5 comments
Labels
question Further information is requested Stale

Comments

@daggarwal01
Copy link

Does the YoloV5 weights (which are converted to .tflite format) are supported in android, for tensorflow lite implementation.

@daggarwal01 daggarwal01 added the question Further information is requested label Aug 12, 2020
@github-actions
Copy link
Contributor

github-actions bot commented Aug 12, 2020

Hello @daggarwal01, thank you for your interest in our work! Please visit our Custom Training Tutorial to get started, and see our Jupyter Notebook Open In Colab, Docker Image, and Google Cloud Quickstart Guide for example environments.

If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

If this is a custom model or data training question, please note Ultralytics does not provide free personal support. As a leader in vision ML and AI, we do offer professional consulting, from simple expert advice up to delivery of fully customized, end-to-end production solutions for our clients, such as:

  • Cloud-based AI systems operating on hundreds of HD video streams in realtime.
  • Edge AI integrated into custom iOS and Android apps for realtime 30 FPS video inference.
  • Custom data training, hyperparameter evolution, and model exportation to any destination.

For more information please visit https://www.ultralytics.com.

@glenn-jocher
Copy link
Member

glenn-jocher commented Aug 12, 2020

@daggarwal01 export pipeline is pytorch > onnx > tflite. See the tutorials to get started: https://docs.ultralytics.com/yolov5

@daggarwal01
Copy link
Author

daggarwal01 commented Aug 15, 2020

I tried converting the weights using this pipeline,I succeed in converting it from .pt to .onnx and then to .pb, but while converting it into .tflite using the below mention code ,it showed me error. I looked for all the options but still stuck.

Convert the model.

converter = tf.lite.TFLiteConverter.from_frozen_graph("./models/model_simple.pb",input_arrays=['main_input'],output_arrays=['main_output'])
tf_lite_model = converter.convert()

Save the TF Lite model.

open('.models/model_simple.tflite', 'wb').write(tf_lite_model)

with tf.io.gfile.GFile('model.tflite', 'wb') as f:
f.write(tflite_model)

@glenn-jocher
Copy link
Member

@daggarwal01 since this error was generated by external packages, the best place to raise an issue and ask questions regarding your error is on the relevant package repo.

@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Stale
Projects
None yet
Development

No branches or pull requests

2 participants