# Cattle Weight Detection Model

**URL:** <https://discuss.ai.google.dev/t/cattle-weight-detection-model/8139>\
**Category:** TensorFlow\
**Tags:** tflite\
**Created:** [May 25, 2023, 10:48am UTC](https://discuss.ai.google.dev/t/cattle-weight-detection-model/8139 "2023-05-25T10:48:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Agro\_Consultant](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/agro_consultant/32/13301_2.png) [@Agro\_Consultant](https://discuss.ai.google.dev/u/Agro_Consultant)\
**Post date:** [May 25, 2023, 10:48am UTC](https://discuss.ai.google.dev/t/cattle-weight-detection-model/8139/1 "2023-05-25T10:48:45Z")

</div>

Hello. I am wondering if there is a way to create a Tensorflowlite model with the existing model in this database?

[https://www.kaggle.com/datasets/sadhliroomyprime/cattle-weight-detection-model-dataset-12k/discussion/393162](https://www.kaggle.com/datasets/sadhliroomyprime/cattle-weight-detection-model-dataset-12k/discussion/393162)

---

<div class="post-metadata">

**Author:** ![Kiran\_Sai\_Ramineni](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/kiran_sai_ramineni/32/8859_2.png) [@Kiran\_Sai\_Ramineni](https://discuss.ai.google.dev/u/Kiran_Sai_Ramineni)\
**Post date:** [May 31, 2023, 11:42am UTC](https://discuss.ai.google.dev/t/cattle-weight-detection-model/8139/3 "2023-05-31T11:42:36Z")

</div>

Hi @Agro_Consultant, The link you have provided only has the dataset but does not contain any model. Generally, to convert a tensorflow keras model to tesorflow lite model we use TFLite converter.

```auto
converter = tf.lite.TFLiteConverter.from_keras_model(model)
tflite_model = converter.convert()

# Save the model.
with open('model.tflite', 'wb') as f:
  f.write(tflite_model)

```

Thank You.
