I'm trying to use tensorflow serving. However, any of the pretrained models that are available for download (like from here: the TF detection zoo ) don't have any files in the saved_models/variables
directory that is required by the serving model.
How do you create the files required in the saved_models/variables
directory using the pretrained models available from the detection model zoo?
There is some information from the official documentation , but it doesn't cover my use case of converting a pretrained model to be served.
Other things I've tried is to use the tensorflow serving examples. However, most of the existing documentation uses the Resent implementation as an example, and the pretrained model for resnet has been removed by Tensorflow. This is the linked that tutorials use , note that there's no direct link to download the models. As an aside, but an additional funsy, the python examples in the Tensorflow Serving repo don't work with Tensorflow 2.0.
It appears that this link may be useful in the conversion: https://github.com/tensorflow/models/issues/1988
Ok, as of the time of writing the object detection tutorials only support tensorflow 1.12.0.
It's a little difficult to do this because it's so multitiered, but you need to:
models/research/object_detection/exporter.py
according to these instructions . Alternatively, you can use this patch which are the aforementioned instructions./path/to/model.ckpt.data-00000-of-00001
, /path/to/model.ckpt.meta
, and /path/to/model.ckpt.index
, the parameter to pass into to the script is: /path/to/model.ckpt
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.