gpt4 book ai didi

amazon-web-services - AWS Sagemaker - 客户端错误 : An error occurred (ValidationException) when calling the CreateTransformJob operation

转载 作者:行者123 更新时间:2023-11-30 09:44:21 25 4
gpt4 key购买 nike

我正在尝试在 AWS sagemaker 上运行批量转换作业。但是,当我创建变压器并运行转换方法时,我不断收到以下错误:

ClientError: An error occurred (ValidationException) when calling the CreateTransformJob operation: Could not find model "arn:aws:sagemaker:eu-west-1:775938635291:model/tensorflow-yolov3-2019-01-31-15-41-17-966".

这是我运行转换方法的代码部分:

# Initialize the transformer object
transformer = sagemaker.transformer.Transformer(
base_transform_job_name='Batch-Transform',
model_name="tensorflow-xxxxx-xxxx-xx-xx-xx-xx-xx-xx",
instance_count=1,
instance_type='ml.c4.xlarge',
output_path=output_location,
accept='application/json',
sagemaker_session=sage.Session(),
max_payload = 100,
max_concurrent_transforms = 5
)

# To start a transform job:
transformer.transform(input_location, content_type='application/json')
# Then wait until transform job is completed
transformer.wait()

有人可以解释为什么我会收到上述错误吗?

最佳答案

错误提示找不到您引用的模型。使用以下命令行命令查找它:

aws sagemaker list-models

注意:确保职位、型号和列表位于同一 eu-west-1 区域。

关于amazon-web-services - AWS Sagemaker - 客户端错误 : An error occurred (ValidationException) when calling the CreateTransformJob operation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54476091/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com