FastDeploy icon indicating copy to clipboard operation
FastDeploy copied to clipboard

如何修改使http请求能支持传入图片的base64编码?

Open ignore1999 opened this issue 8 months ago • 4 comments

  • 【FastDeploy版本】: 最新版镜像
  • 【系统平台】: Linux x64(Ubuntu 18.04)
  • 【硬件】: Nvidia GPU 3080TI, CUDA 11.2 CUDNN 8.3
payload = {
  "inputs" : [
    {
      "name" : "INPUT",
      "shape" : image.shape,
      "datatype" : "UINT8",
      "data" : image.tolist()
    }
  ],
  "outputs" : [
    {
      "name" : ""
    }
  ]
}

在http服务中传递list太慢了,如果希望datatype是base64编码,要如何修改代码?

ignore1999 avatar Jun 19 '24 06:06 ignore1999