简体   繁体   中英

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

I am trying to run a batch transform job on 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM