Comments (6)
@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.
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.
@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:
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.
@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.
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.
Are you satisfied with the resolution of your issue?
Yes
No
from serving.
Related Issues (20)
- TF Serving gets stuck in the polling loop due to a non-existing model provided in config file HOT 3
- Evaluate using Profile-Guided Optimization (PGO) and LLVM BOLT HOT 3
- TensorFlow serving seems to have no version attribute HOT 3
- GPU inference in Docker container fails due to missing libdevice directory HOT 4
- CPU Memory occupied by TF Serving even though serving is on GPU HOT 6
- Version 2.15 release? HOT 7
- Mismatch between TensorRT version used in TF 2.14 GPU docker images for tensorflow/serving and tensorflow/tensorflow causes segfault during inference HOT 1
- Critical Vulnerability HOT 3
- Who to contact for security issues HOT 3
- Difference between Metrics emitted by TF Serving HOT 4
- OP_REQUIRES failed at xla_ops : UNIMPLEMENTED: Could not find compiler for platform CUDA: NOT_FOUND HOT 8
- CUDA Graphs support for Tensorflow Serving HOT 2
- OP_REQUIRES failed at xla_compile_on_demand_op.cc:290 : UNIMPLEMENTED: Could not find compiler for platform CUDA: NOT_FOUND HOT 4
- Add health check to Dockerfile HOT 4
- ETA for TensorFlow Runtime Integration?
- Why TF Serving using one CUDA Compute Stream HOT 4
- Ragged Tensor as an output from Tensorflow serving HOT 5
- How to get prediction request and response logs in TensorFlowServing? HOT 2
- Communicate with gRPC HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serving.