Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

原始是byte[]的数据,没法传。会报triton.client.InferenceException: [request id: <id_unknown>] inference input data-type is 'INT8', model expects 'BYTES' for 'xxxxx' #784

Open
freeleeq opened this issue Sep 24, 2024 · 1 comment

Comments

@freeleeq
Copy link

freeleeq commented Sep 24, 2024

API:
{
name: "IMAGE" # image
data_type: TYPE_STRING
dims: [ 1 ]
}

CODE:
byte[] imgBytes = bos.toByteArray();
InferInput imgInput = new InferInput("IMAGE", new long[] {1, imgBytes.length}, DataType.INT8);
imgInput.setData(imgBytes, true);

@freeleeq freeleeq changed the title 没法原始便是byte[]的数据。会报triton.client.InferenceException: [request id: <id_unknown>] inference input data-type is 'INT8', model expects 'BYTES' for 'xxxxx' 原始是byte[]的数据,没法传。会报triton.client.InferenceException: [request id: <id_unknown>] inference input data-type is 'INT8', model expects 'BYTES' for 'xxxxx' Sep 24, 2024
@freeleeq
Copy link
Author

if use byte[] -> String,It will get worse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant