How can I send an image data when requesting an Execute session?
How can I send an image data when requesting an Execute session? If I send a numpy array of images, there will be a body limit error
Hi, @gzxy-0102 I would like to know the following information to troubleshoot the problem.
- What is the size of your numpy array?
- Which protocol did you use, HTTP/HTTPS or TCP?
- What did the error message say?
Hi, @gzxy-0102 I would like to know the following information to troubleshoot the problem.
- What is the size of your numpy array?
- Which protocol did you use, HTTP/HTTPS or TCP?
- What did the error message say?
Hi, @kibae I didn't record the size of numpy, but I can provide a picture I am using the HTTP protocol The error message is that the body has exceeded the limit
@gzxy-0102
There was a payload size limit for HTTP/HTTPS requests. I resolved this issue by adding the --request-payload-limit option. It can also be set using the environment variable ONNX_SERVER_REQUEST_PAYLOAD_LIMIT. The unit is in bytes.
https://github.com/kibae/onnxruntime-server?tab=readme-ov-file#options
Coincidentally, onnxruntime has been updated to version 1.18.1. I have prepared a new Docker image accordingly. If you are using the Docker image, you can pass the environment variable with an option like -e "ONNX_SERVER_REQUEST_PAYLOAD_LIMIT=xxxxxxxxxxxxxxx".
Please let me know if you encounter any issues. Thank you.
@gzxy-0102 There was a payload size limit for HTTP/HTTPS requests. I resolved this issue by adding the
--request-payload-limitoption. It can also be set using the environment variableONNX_SERVER_REQUEST_PAYLOAD_LIMIT. The unit is in bytes. https://github.com/kibae/onnxruntime-server?tab=readme-ov-file#optionsCoincidentally, onnxruntime has been updated to version 1.18.1. I have prepared a new Docker image accordingly. If you are using the Docker image, you can pass the environment variable with an option like
-e "ONNX_SERVER_REQUEST_PAYLOAD_LIMIT=xxxxxxxxxxxxxxx".Please let me know if you encounter any issues. Thank you.
@kibae Thank you so much. I whill try it later
Hi @kibae It can now send images, but when I requested the API to register the model, the request to register the model kept running
Hi @kibae It can now send images, but when I requested the API to register the model, the request to register the model kept running
Hi @kibae It can now send images, but when I requested the API to register the model, the request to register the model kept running
Hello! Could you please send me the code to send the image? I'm interested in its function of converting from image to JSON
Hi @kibae It can now send images, but when I requested the API to register the model, the request to register the model kept running
![]()
Yes, I have exactly the same error, in the end I just refused logging in docker volumes and just watch them through exec so that they don't spam endlessly