serving icon indicating copy to clipboard operation
serving copied to clipboard

Example of exporting pre-trained model ?

Open xiafei1009 opened this issue 10 years ago • 2 comments

Hi, the existing examples all consist of model training step which use TensorFlow, but more generally, we want to use TF-serving to export pre-trained models (.pb files for tensorflow), so can you provide one such example ? Furthermore, how to export models trained by other platform like caffe/MxNet ?

Thanks a lot ~

xiafei1009 avatar Apr 08 '16 02:04 xiafei1009

@fangweili for an example of exporting a pre-trained model.

Regarding exporting models trained by other platforms, we don't currently have that support. The exporter of those models could in theory live in those repos (e.g. caffe will export its own models), but TensorFlow Serving would have a caffe specific Loader/Servable that can be used to load and query such a model. We don't have current plans to add this, but community contributions to add plugins for other training platforms are always welcomed.

kirilg avatar Apr 08 '16 15:04 kirilg

An example of exporting pre-trained model: https://github.com/tensorflow/serving/blob/master/tensorflow_serving/example/inception_export.py

On Fri, Apr 8, 2016 at 8:38 AM, Kiril Gorovoy [email protected] wrote:

@fangweili https://github.com/fangweili for an example of exporting a pre-trained model.

Regarding exporting models trained by other platforms, we don't currently have that support. The exporter of those models could in theory live in those repos (e.g. caffe will export its own models), but TensorFlow Serving would have a caffe specific Loader/Servable that can be used to load and query such a model. We don't have current plans to add this, but community contributions to add plugins for other training platforms are always welcomed.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/tensorflow/serving/issues/34#issuecomment-207483690

fangweili avatar Apr 08 '16 17:04 fangweili