我知道,可以在google上部署用于培训作业的自定义容器,并且我已经能够使用命令实现相同的运行。
gcloud ai-platform jobs submit training infer name --region some_region --master-image-uri=path/to/docker/image --config config.yaml
培训工作成功完成,模型获得成功,现在我想使用这个模型进行推理,但是问题是我的代码有系统级的依赖关系,所以我必须对体系结构做一些修改才能让它一直运行。这就是首先为培训工作设置一个自定义容器的原因。
这些文档只适用于培训部分和推理部分,(如
我正在尝试使用自定义容器部署经过自定义培训的模型,即从我创建的模型创建端点。我在AI平台上做同样的事情(相同的模型和容器),它在那里工作得很好。
在第一次尝试中,我成功地部署了模型,但是自从我尝试创建端点时,它就说“部署”了1+小时,然后失败了,出现了以下错误:
google.api_core.exceptions.FailedPrecondition: 400 Error: model server never became ready. Please validate that your model file or container configuration are valid. Mo
目前,我正试图通过遵循将自定义模型部署到AI平台上。它是基于'torchvision.transform'.和‘Py手电筒’的预训练模型的组合。目前,我一直处于与500 on的自定义预测约束有关的错误下面。
错误:(gcloud.beta.ai-platform.versions.create)创建版本失败。错误检测模型:模型需要比允许的内存更多的内存。请尽量缩小型号尺寸并重新部署。如果您继续遇到错误,请与支持部门联系。
Setup.py
from setuptools import setup
from pathlib import Path
base = Path(__f
我正在使用actions on google ApiAiAssistant node.js库和API.ai来设计我的聊天机器人。
我专门为它创建了一个德国API.ai代理。因此,我需要从请求中获取locale值到web钩子,以知道请求来自哪个地区。
我看到了一种类似于ApiAiAssistant.getLocale的方法,用于从请求中获取区域设置信息,但我无法从文档中找到特定的方法。
这个方法被废弃了吗?如何从API.ai web钩子请求中获取区域设置信息?
我在Google平台上部署了Pytorch模型,我得到了以下错误:
ERROR: (gcloud.beta.ai-platform.versions.create) Create Version failed. Bad model detected with error: Model requires more memory than allowed. Please try to decrease the model size and re-deploy. If you continue to have error, please contact Cloud ML.
配置:
setup.py
我的目标是将调用Amazon的Product Advertising API得到的响应写成JSON格式的文件。
我使用以下命令调用API
response = default_api.search_items(search_items_request)
我尝试使用以下命令将结果写入文件:
with open('data.json', 'w') as f:
json.dump(response, f)
我得到了错误消息:
TypeError : Object of type 'SearchItemsResponse' is
我已经在AI平台上部署了一个TensorFlow对象检测模型。机型配置如下:
MetaGraphDef with tag-set: 'serve' contains the following SignatureDefs:
signature_def['serving_default']:
The given SavedModel SignatureDef contains the following input(s):
inputs['image_bytes'] tensor_info:
dtype: DT_STR
我正在尝试在google cloud ai平台上创建一个版本,但它找不到impute模块 No module named 'sklearn.impute._base; 'sklearn.impute' is not a package ? 框架版本是sklearn 0.20.4,最后我检查了一下文档0.20.4中有sklearn.impute应用程序接口。 第1785页https://scikit-learn.org/0.20//_downloads/scikit-learn-docs.pdf 整个sklearn包都包含在ai平台中了吗?有没有变通的办法(我真的不
我试图使用测试版谷歌自定义预测程序在谷歌的人工智能平台运行我的模型的实时版本。
我在包中包含了predictor.py,它包含这样一个Predictor类:
import os
import numpy as np
import pickle
import keras
from keras.models import load_model
class Predictor(object):
"""Interface for constructing custom predictors."""
def __init__(self,