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

tf to tflite conversion showing ambiguous sizes #443

Open
AnweshaDeb97 opened this issue Mar 13, 2023 · 0 comments
Open

tf to tflite conversion showing ambiguous sizes #443

AnweshaDeb97 opened this issue Mar 13, 2023 · 0 comments

Comments

@AnweshaDeb97
Copy link

AnweshaDeb97 commented Mar 13, 2023

Whenever I am trying to convert tf to tflite using different optimization techniques, it is showing the same final size. The model sizes I am getting are as follows :-
.h5 model size : 711 KB

  1. after pruning+post-quantization : 89 KB (according to https://www.tensorflow.org/model_optimization/guide/pruning/pruning_with_keras , it should create 10x smaller model)
  2. after clustering+post-quantizaion : 89 KB
  3. after post-quantization : 89 KB
  4. after quantize-aware-training : 89 KB

I want to know the reason behind the same final optimized sizes. Even though I am using different optimization techniques, why am I getting the same final .tflite file sizes for different optimizations.

Note : I have also tried optimization using the code provided in examples for pruning, clustering and quantize-aware training on tensorflow website, still seeing the same final size for all optimizations.

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

1 participant