Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TFServer如何读取图片字节流 #1

Open
UnparalleledBeauty opened this issue Nov 16, 2021 · 0 comments
Open

TFServer如何读取图片字节流 #1

UnparalleledBeauty opened this issue Nov 16, 2021 · 0 comments

Comments

@UnparalleledBeauty
Copy link

image_data = tf.io.gfile.GFile(picPath, 'rb').read()
predictions = sess.run(softmax_tensor, {'DecodeJpeg/contents:0': image_data})
比如我在外部给模型传递的是图片[]byte,这里如何改造呢,刚刚转python,对tensorflow不是很了解,麻烦拉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant