I'm trying to use my trained tensorflow model for object detection in Java.
I exported the model (trained with Python) with this script [export\_inference\_graph](https://github.com/tensorflow/models/blob/master/research/object_detection/export_inference_graph.py). This generated a frozen\_inference\_graph.pb file as well as a saved\_model.pb file.

My understanding is that the best way to use this model in Java is to use to load the model via SavedModelBundle.load(). However, when I try this with the saved\_model.pb file, I get the error `SavedModel not found in export directory:`. Is there a better way to load the model in Java for object detection?

Please let me know if you have any suggestions! I suspect that I'm doing something wrong in the process.