hunglc007 / tensorflow-yolov4-tflite

YOLOv4, YOLOv4-tiny, YOLOv3, YOLOv3-tiny Implemented in Tensorflow 2.0, Android. Convert YOLO v4 .weights tensorflow, tensorrt and tflite
https://github.com/hunglc007/tensorflow-yolov4-tflite
MIT License
2.23k stars 1.24k forks source link

tflite model is of large size than tensorflow model #412

Open abhi-84 opened 2 years ago

abhi-84 commented 2 years ago

Hi My darknet model weight is 256MB. When converting to TensorFlow, size is 11.8MB and when converting back to tflite , size increases to 257MB. Why? Please guide

I have used following commands:

python save_model.py --output ./checkpoints/yolov4-tiny-416 --input_size 416 --model yolov4 --framework tflite python convert_tflite.py --weights ./checkpoints/yolov4-tiny-416 --output ./checkpoints/yolov4-tiny-416.tflite