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

Need help to run this model on android #19

Open
ameerhamza6733 opened this issue May 5, 2019 · 4 comments
Open

Need help to run this model on android #19

ameerhamza6733 opened this issue May 5, 2019 · 4 comments

Comments

@ameerhamza6733
Copy link

ameerhamza6733 commented May 5, 2019

I am trying to run this model on the Android device.i think I have made some mistake here can you please review these value and let me know I these values are correct or not

Error : E/TensorFlowInferenceInterface: Failed to run TensorFlow inference with inputs:[input], outputs:[predictions]

Please reply Thank you.

        private const val INPUT_WIDTH = 224
        private const val INPUT_HEIGHT = 224
        private const val IMAGE_MEAN = 117
        private const val IMAGE_STD = 1f
        private const val INPUT_NAME = "input"
        private const val OUTPUT_NAME = "predictions"
@ashik-e-rabbani
Copy link

Make sure your android INPUT_NAME and OUTPUT_NAME should be the same of your training time name.

@ameerhamza6733
Copy link
Author

ameerhamza6733 commented May 5, 2019

@ashik-e-rabbani
Copy link

@ameerhamza6733
Copy link
Author

I use google colab to convert this model to tflie. Now when I run this tflite on my android device it always returns the first label with high probability any idea why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants