发送 http 请求 Google Vertex AI 端点

Posted

技术标签:

【中文标题】发送 http 请求 Google Vertex AI 端点【英文标题】:Sending http request Google Vertex AI end point 【发布时间】:2021-11-06 02:27:01 【问题描述】:

我刚刚在 Google vertex AI 上部署了一个 ML 模型,它可以使用 vertex AI Web 界面进行预测。但是是否可以从浏览器发送请求,例如,发送到这个部署的模型。类似的东西

http://myapp.cloud.google.com/input="features of an example" 

并将预测作为输出。 谢谢

【问题讨论】:

【参考方案1】:

是的,您可以使用端点 URL 发送。

https://us-central1-aiplatform.googleapis.com/v1beta1/projects/<PROJECT_ID>/locations/us-central1/endpoints/<ENDPOINT_ID>:predict

数据应该在 POST 参数中给出。


  "instances": 
    [1.4838871833555929,
 1.8659883497083019,
 2.234620276849616,
 1.0187816540094903,
 -2.530890710602246,
 -1.6046416850441676,
 -0.4651483719733302,
 -0.4952254087173721,
 0.774676376873553]

URL 应该是基于区域的。

【讨论】:

以上是关于发送 http 请求 Google Vertex AI 端点的主要内容,如果未能解决你的问题,请参考以下文章

将 Google 的 Tensorboard 连接到 Vertex AI AutoML

在自定义适配器类中发送服务器请求后,如何更改 Listview 按钮名称?

在 Google vertex ai 上创建自定义模型

Vertex AI 自定义预测与 Google Kubernetes Engine

Google Cloud Vertex AI - 模型不支持 400 'dedicated_resources'

Google Vertex AI AutoML - 无法为 CSV 数据集指定架构