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

请问用image做inference的时候这个报错是什么意思? #21

Closed
CyLouisKoo opened this issue Jul 30, 2018 · 5 comments
Closed
Assignees

Comments

@CyLouisKoo
Copy link

image

@tobegit3hub
Copy link
Owner

It seems that you are requesting with the "input" data but it is not in the model signature.

For image inference, we recommend you to export the image model with "images" as inputs and the clients should request with the "images" data instead of "input".

@CyLouisKoo
Copy link
Author

CyLouisKoo commented Jul 30, 2018

How to do it specifically? Suppose I have the following ready-made model. How can I quickly call this model, is there a ready-made solution? Appreciate much for your answer
image

@tobegit3hub
Copy link
Owner

tobegit3hub commented Jul 31, 2018

Thanks for your response. I have updated the deep_image_model with image base64 as input.

Now you can git pull to get the latest pre-trained model and test with this commands.

simple_tensorflow_serving --model_base_path="./models/deep_image_platforms"

curl -X POST -F 'image=@./images/mew.jpg' -F "model_version=1" 127.0.0.1:8500

Or go to the dashboard in http://localhost:8500/ and upload the image to make inference.

@tobegit3hub tobegit3hub self-assigned this Jul 31, 2018
@CyLouisKoo
Copy link
Author

Sorry for the late reply. Both of the above methods can be run through. Appreciate much and I will study your code framework again.

@tobegit3hub
Copy link
Owner

Great and thanks for reporting the issue.

I'm gonna close the issue and feel free to re-open if you have any other question.

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

2 participants