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

Replaced the model and the label but it Crashes! #10

Open
bathanfritz opened this issue Oct 5, 2018 · 2 comments
Open

Replaced the model and the label but it Crashes! #10

bathanfritz opened this issue Oct 5, 2018 · 2 comments

Comments

@bathanfritz
Copy link

OS: Ubuntu 16.0.4 64bit
Python version: 3.6.5 on virtual env
Tensorflow version: 1.11.0

I retrained a model with model architecture (mobilenet_v1_224) . cant freeze it because it says it is already frozen after retraining. then I convert it using toco. I import it to assets folder ,the graph.tflite and labels.txt, edit the model and label variables in MainActivity,
but when I launched it in my device and hit "Detect Object" button, it crashes.Am I missing something? How can I fix this. Please help me, Thank you very much!!

@bathanfritz
Copy link
Author

bathanfritz commented Oct 5, 2018

Okay, now, I noticed that my model is not quantized, I try to quantized the model for now

EDIT: I quantized my retrained graph but cant convert it to tflite with QUANTIZED_UINT8

@soum-io
Copy link
Contributor

soum-io commented Feb 5, 2019

My recent PR has added support for float models. Simply change the variable QUANT to false in TensorFlowImageClassifier.java along with changing the model and lebels name.

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