Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

tf to tflite conversion showing ambiguous sizes #443

@AnweshaDeb97

Description

@AnweshaDeb97

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions