We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我遵照文档:基于深度学习的ECG分类(五)——使用Docker部署模型.md,发送curl -d '{"instances": [[[-0.145],[-0.145],[-0.145],...]]}' -X POST http://localhost:8501/v1/models/half_plus_two:predict指令遇到如下问题: curl -d '{"instances": [[[-0.145],[-0.145],[-0.145],...]]}' -X POST http://localhost:8501/v1/models/half_plus_two:predict { "error": "JSON Parse error: Invalid value. at offset: 43" } 请求确认是JSON格式改变了吗
The text was updated successfully, but these errors were encountered:
这个不是 json 格式出现问题,虽然不知道你有没有解决。但是我看到还是处于 open 状态就顺便说一下,你尝试把 csv 里的数据拿出来,变成他这样数组的格式。主要他是缺省写的这个例子,因为按照它的采样频率,假如对 mit-bih-arrhythmia-database-1.0.0 进行采样,一组共有 3600 个数据。例子就太大了。如果不清楚看我上传的图片。将你保存的 mongoDB 的采样数据拿出来,默认是一个大数组,然后对大数组进行转换变成他那种格式。也就是假如 [1,2,3,4,5] 变成 [[1],[2],[3],[4],[5]]. 然后通过 curl 进行 post 请求
Sorry, something went wrong.
No branches or pull requests
我遵照文档:基于深度学习的ECG分类(五)——使用Docker部署模型.md,发送curl -d '{"instances": [[[-0.145],[-0.145],[-0.145],...]]}' -X POST http://localhost:8501/v1/models/half_plus_two:predict指令遇到如下问题:
curl -d '{"instances": [[[-0.145],[-0.145],[-0.145],...]]}' -X POST http://localhost:8501/v1/models/half_plus_two:predict
{
"error": "JSON Parse error: Invalid value. at offset: 43"
}
请求确认是JSON格式改变了吗
The text was updated successfully, but these errors were encountered: