simple_tensorflow_serving使用

深渊向深渊呼唤

1. 地址:

https://github.com/tobegit3hub/simple_tensorflow_serving

2.下载后解压到目录

3.准备环境(只能在linux上,因为window下安装uwsgi失败):

sudo ln -s /usr/local/ssl/lib/libcrypto.so.45.0.4 /usr/lib64/libcrypto.so
sudo ln -s /usr/local/ssl/lib/libssl.so.47.0.5 /usr/lib64/libssl.so
pip373 install uwsgi
pip373 install configparser flask-cors pandas pillow protobuf
python3 setup.py install
python3 setup.py develop

安装uwsgi报错,在uwsgiconfig.py中添加import platform, 并且将os.uname替换为platform.uname

4.生成资料:

pip373 install sphinx sphinx_rtd_theme recommonmark
cd simple_tensorflow_serving-master/docs
make singlehtml
build/singlehtml/index.html

5.运行环境:

pip373 install tensorflow

6.参考资料:

https://readthedocs.org/projects/stfs/downloads/pdf/latest/

https://github.com/tobegit3hub/simple_tensorflow_serving

https://github.com/czy36mengfei/tensorflow2_tutorials_chinese

https://zhuanlan.zhihu.com/p/52827335

 

 

栏目