Giter Club home page Giter Club logo

Comments (6)

singhniraj08 avatar singhniraj08 commented on August 19, 2024

@x13872140520, The error indicates that the Java client code for sending REST request to TF Serving API is sending a bad request. Please make sure you are making request in correct format. Here is a python example for making REST request to your model in TF Serving. Thank you!

from serving.

github-actions avatar github-actions commented on August 19, 2024

This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.

from serving.

x13872140520 avatar x13872140520 commented on August 19, 2024

@singhniraj08 Thanks for the answer, this problem is solved, the problem is that the code training the model needs to add base64 related processing, as follow:
Image

and then it can return the result of probability distribution as follow:
TensorFlow Serving response: {
"predictions": [[0.0142633133, 0.000105166473, 0.0256272946, 0.00341447047, 0.157596678, 0.00203850493, 0.561303079, 0.000357849116, 0.00741964, 0.227874041]
]
}。 but the new problem is that no matter what picture is predicted, this probability distribution is always the 7th largest.
I use the folder name as a label, to achieve the classification of pictures, everything in the python code environment is running well, can be correctly trained and predicted.

from serving.

singhniraj08 avatar singhniraj08 commented on August 19, 2024

@x13872140520, The probability distribution issue would be caused by some issue in model or when interpreting predictions from client side. Please make sure the model predictions are working correctly. And since there are no issues pending from Tensorflow Serving side, requesting you to close this issue. Thank you!

from serving.

github-actions avatar github-actions commented on August 19, 2024

This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.

from serving.

google-ml-butler avatar google-ml-butler commented on August 19, 2024

Are you satisfied with the resolution of your issue?
Yes
No

from serving.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.