简体   繁体   English

AWS Sagemaker - ClientError:调用 CreateTransformJob 操作时发生错误 (ValidationException)

[英]AWS Sagemaker - ClientError: An error occurred (ValidationException) when calling the CreateTransformJob operation

I am trying to run a batch transform job on AWS sagemaker.我正在尝试在 AWS sagemaker 上运行批量转换作业。 However, I keep getting the following error when I create a transformer and run the transform method:但是,当我创建转换器并运行转换方法时,我不断收到以下错误:

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".

This is the part of my code where I run the transform method:这是我运行转换方法的代码部分:

# 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()

Anybody that can explain why I could get the error above?任何人都可以解释为什么我会得到上面的错误?

Error say it can't find the model you reference.错误说它找不到您引用的模型。 Find it using this command line command:使用以下命令行命令查找它:

aws sagemaker list-models

Note: make sure the job, model and listing is in the same eu-west-1 region.注意:确保工作、模型和列表在同一个 eu-west-1 区域。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我正在尝试创建 AWS Sagemaker Pipeline。 ClientError:调用 CreatePipeline 操作时发生错误(ValidationException): - I am trying to create AWS Sagemaker Pipeline. ClientError: An error occurred (ValidationException) when calling the CreatePipeline operation: SageMaker ClientError:调用CreateTrainingJob操作时发生错误(ValidationException):无法担任角色 - SageMaker ClientError: An error occurred (ValidationException) when calling the CreateTrainingJob operation: Could not assume role botocore.exceptions.ClientError:调用 CreateModel 操作时发生错误(ValidationException):无法访问 model 数据 - botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the CreateModel operation: Could not access model data ClientError:调用 CreateHyperParameterTuningJob 操作时发生错误(ValidationException):客观指标:[mse] - ClientError: An error occurred (ValidationException) when calling the CreateHyperParameterTuningJob operation:The objective metric :[mse] Aws EventBridge PutEvent 限制错误:调用 PutEvents 操作时发生错误 (ValidationException) - Aws EventBridge PutEvent Limit error: An error occurred (ValidationException) when calling the PutEvents operation [Django][AWS S3] botocore.exceptions.clienterror 调用 PutObject 操作时发生错误(访问被拒绝) - [Django][AWS S3] botocore.exceptions.clienterror an error occurred (accessdenied) when calling the PutObject operation AWS - ClientError:调用 GetObject 操作时发生错误 (AccessDenied):访问被拒绝 - AWS - ClientError: An error occurred (AccessDenied) when calling the GetObject operation: Access Denied AWS Lamda:ClientError:调用 HeadObject 操作时发生错误(403):禁止 - AWS Lamda: ClientError: An error occurred (403) when calling the HeadObject operation: Forbidden AWS Lambda:“errorMessage”:“调用GetObject操作时发生错误(AccessDenied):访问被拒绝”,“errorType”:“ClientError”, - AWS Lambda: "errorMessage": "An error occurred (AccessDenied) when calling the GetObject operation: Access Denied", "errorType": "ClientError", ClientError:调用 SendEmail 操作时发生错误 (AccessDenied): - ClientError: An error occurred (AccessDenied) when calling the SendEmail operation:
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM