You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 = ?
.....
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: