# How to increase fps in tensorflow object detection model

**URL:** <https://discuss.ai.google.dev/t/how-to-increase-fps-in-tensorflow-object-detection-model/31531>\
**Category:** General Discussion\
**Tags:** object-detection, tensorflow, tflite, models\
**Created:** [November 2, 2023, 5:44am UTC](https://discuss.ai.google.dev/t/how-to-increase-fps-in-tensorflow-object-detection-model/31531 "2023-11-02T05:44:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit\_Kumar\_Tiwaree](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/amit_kumar_tiwaree/32/8321_2.png) [@Amit\_Kumar\_Tiwaree](https://discuss.ai.google.dev/u/Amit_Kumar_Tiwaree)\
**Post date:** [November 2, 2023, 5:44am UTC](https://discuss.ai.google.dev/t/how-to-increase-fps-in-tensorflow-object-detection-model/31531/1 "2023-11-02T05:44:01Z")

</div>

i have a trained tensorflow model , for the training i select ssdmobilenetfpnlite(640x640) after that i convert my model to tflite. while inferencing i got only 3-4 fps how i increase that fps more than 25

---

<div class="post-metadata">

**Author:** ![LK\_Kadali](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/lk_kadali/32/13996_2.png) [@LK\_Kadali](https://discuss.ai.google.dev/u/LK_Kadali)\
**Post date:** [January 5, 2024, 9:26am UTC](https://discuss.ai.google.dev/t/how-to-increase-fps-in-tensorflow-object-detection-model/31531/3 "2024-01-05T09:26:22Z")

</div>

Hi @Amit_Kumar_Tiwaree ,  
Here are a few possibilities that you can increase Frames per second(fps) while inferencing:  
From TFLIte point of view:

1. Optimize the TFLite model to int8 quantization(improves the speed by 3x+) [Ref](https://www.tensorflow.org/lite/performance/post_training_quantization).
2. If your target device has hardware acceleration, use it to run your model. The supported delegates for hardware acceleration are: NNAPI on Android, GPU delegates on iOS and Android, and Edge TPU on Coral devices.  
From Base model point of view:
3. Use the model optimization techniques like Pruning and knowledge distillation.
4. If acceptable to the accuracy barometer, try to reduce the input image resolution to 320x320. It will significantly improve fps especially on low-end devices.

Thank You
