Skip to content

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

Open
@freeleeq

Description

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);

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions