-
Notifications
You must be signed in to change notification settings - Fork 26
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
[DISCUSSION] MobileNetV2 train and quantize #62
Comments
This is an error thrown by the TFLite Micro Interpreter, which is also used in this tool. Are you able to use your model with the normal TFLite Micro Flow? If no, then your model does not seem to be compatible with your version of tensorflow. If yes, please make sure to use the same version of tensorflow in the testing flow and the tflite_micro_compiler. |
I've checked it and normal TFLite Micro interpreter can not inference successfuly. I saw in commit 538aafd that it's way to work with MobileNetV2, I have read all stuff I found about quantizing MobileNetV2 and still don't know wich tf version should I use. So mayby You can help me with create flow for MobileNetV2 quantizing and compiling. I'll be very thankfull for any advice :) It will be awesome if you can link or add some template workflow or source code for correct implementation, training and quantization. |
Hi Jakub, |
Hi Christof!, |
Hi Jakub, I fear that the 2 in my mobilenet example file name is just to indicate the second variant (compiled vs interpreted) and the model in use is MobileNet_v1_0.25_160_quant from this page https://github.com/tensorflow/models/blob/master/research/slim/nets/mobilenet_v1.md . |
Thank you a lot, I'll definitly check it. I don't know how I can miss this obvious about 2, sorry for this :) |
Hello!
I'm wondering how to train a MobileNetV2 and fully quantize the tflite model. I know that I can do it in EdgeImpulse but I want to change the architecture a bit.
I'm using the tf2.3 version and mobile net from tf.keras.applications.MobileNetV2. While converting compiling model I got an error
Didn't find op for builtin opcode 'SHAPE' version '1'
Failed to get registration from op code SHAPE
Failed starting model allocation.
AllocateTensors() failed
Could not set up compiler
I'm wondering how did you do that. I'll be very thankfull for any advice
The text was updated successfully, but these errors were encountered: