# Use TF model in java

**URL:** <https://discuss.ai.google.dev/t/use-tf-model-in-java/28486>\
**Category:** General Discussion\
**Tags:** java, help\_request\
**Created:** [June 11, 2024, 11:56am UTC](https://discuss.ai.google.dev/t/use-tf-model-in-java/28486 "2024-06-11T11:56:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Heca](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/heca/32/10807_2.png) [@Heca](https://discuss.ai.google.dev/u/Heca)\
**Post date:** [June 11, 2024, 11:56am UTC](https://discuss.ai.google.dev/t/use-tf-model-in-java/28486/1 "2024-06-11T11:56:26Z")

</div>

Hello Im new to TF. I was wondering how can I load a trained model using java and then use this model to detect objects in an image?

---

<div class="post-metadata">

**Author:** ![craigacp](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/craigacp/32/6331_2.png) [@craigacp](https://discuss.ai.google.dev/u/craigacp)\
**Post date:** [June 12, 2024, 3:20am UTC](https://discuss.ai.google.dev/t/use-tf-model-in-java/28486/3 "2024-06-12T03:20:59Z")

</div>

If you have the model in TF Saved Model format then you can load it with TF-Java - [GitHub - tensorflow/java: Java bindings for TensorFlow](https://github.com/tensorflow/java). We do have an object detection example here - [GitHub - tensorflow/java-models: Models in Java](https://github.com/tensorflow/java-models) but it’s not been updated for TF-Java 1.0-rc1 yet. We’ll try to get that updated this week.
