Comments (2)
@harshbafna this should really be working. Can we please look into this?
from serve.
The issue is with the curl command which sends the images in two separate requests.
curl -v -X POST http://127.0.0.1:8080/predictions/resnet-152-batch -T "{kitten.jpg,dog.jpg}"
* Trying 127.0.0.1:8080...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> POST /predictions/resnet-152-batch HTTP/1.1
> Host: 127.0.0.1:8080
> User-Agent: curl/7.65.3
> Accept: */*
> Content-Length: 110969
> Expect: 100-continue
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 100 Continue
* We are completely uploaded and fine
* Mark bundle as not supporting multiuse
< HTTP/1.1 200
< x-request-id: 4fb625c8-cfcc-45e4-a389-73c39007fb74
< Pragma: no-cache
< Cache-Control: no-cache; no-store, must-revalidate, private
< Expires: Thu, 01 Jan 1970 00:00:00 UTC
< content-length: 32
< connection: keep-alive
<
[
"n02123159",
"tiger_cat"
* Connection #0 to host 127.0.0.1 left intact
]* Found bundle for host 127.0.0.1: 0x7f8db9f00320 [serially]
* Re-using existing connection! (#0) with host 127.0.0.1
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> POST /predictions/resnet-152-batch HTTP/1.1
> Host: 127.0.0.1:8080
> User-Agent: curl/7.65.3
> Accept: */*
> Content-Length: 78949
> Expect: 100-continue
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 100 Continue
* We are completely uploaded and fine
* Mark bundle as not supporting multiuse
< HTTP/1.1 200
< x-request-id: 0f46f9e1-eebe-4fe6-8689-64b73f5b8ed6
< Pragma: no-cache
< Cache-Control: no-cache; no-store, must-revalidate, private
< Expires: Thu, 01 Jan 1970 00:00:00 UTC
< content-length: 41
< connection: keep-alive
<
[
"n02099712",
"Labrador_retriever"
* Connection #0 to host 127.0.0.1 left intact
]
Also note that the default handlers do not support batch inferencing. We have already added an example for batch inferencing using resnet152 model in fix for #66
from serve.
Related Issues (20)
- [RFC]: Deprecation notice for TorchServe macOS x86 builds, binaries & testing
- very high QueueTime
- Add support for MPS in the basehandler HOT 1
- torchserve output customization HOT 3
- Exception when using torchserve to deploy hugging face model: java.lang.InterruptedException: null HOT 4
- Real-time Object Detection HOT 4
- PyTorch Serve: Custom handler not saving inference results HOT 6
- PyTorch serve with custom translators returning Unknown exception HOT 4
- Newer Base Image KServe Container fails with exec /usr/local/bin/dockerd-entrypoint.sh: exec format error HOT 7
- Reduce or remove worker retries for specific failures HOT 6
- Update describe model management API to show all model configuration options
- support install cpp dependency in auto-benchmark
- Custom class handler missing BaseHandler
- Kserve nightly CPU tests failure HOT 1
- gRPC Model Metadata using Open Inference Protocol HOT 1
- `\ready` API for Kubernetes probe to know when TorchServe backend is ready to receive traffic HOT 1
- CPU Launcher fails available check with venv HOT 3
- Can torchserve return image data? HOT 1
- Nightly upload to pypi failed HOT 1
- Conda nightlies not getting uploaded for the last 6 days 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 serve.