I faced with problem. Description about use raw binary data here. But i don't understand how i can receive data with my TritonPythonModel class. Example image send:
import requests
url = "http://localhost:8000/v2/models/inference_pipeline_bytearray/infer"
Read the binary data from a file
with open("image.jpg", "rb") as f:
binary_data = f.read()
headers = {
"Content-Type": "application/octet-stream",
"Inference-Header-Content-Length": "0",
"Content-Length": str(len(binary_data)),
}
response = requests.post(url, headers=headers, data=binary_data)
print(response.text)`
How i cant receive with my TritonPythonModel?
class TritonPythonModel:
.....
def execute(self, requests):
responses = []
for request in requests:
binary_data = ?
.....
I faced with problem. Description about use raw binary data here. But i don't understand how i can receive data with my TritonPythonModel class.
Example image send:
How i cant receive with my TritonPythonModel?