How to use an Augmented Manifest File for AWS SageMaker Ground Truth?

0

Hey,

I'm trying to use Ground Truth to do image classification but with a different set of label options for each image. I have the custom labeling task template and pre-/post-labeling Lambda functions set up and I figured I could pass in the labels through the manifest file.

My issue is that the Ground Truth job ignores the attributes in the manifest file that are not "source-ref" (or "source"). This causes the pre-processing Lambda function to fail because the request it is passed only contains the "source-ref" attribute, but the Lambda function also references a different attribute. Are augmented manifest files supported for Ground Truth and if they are, how can I make use of the extra attributes?

References:
Ground Truth Input Data: https://docs.aws.amazon.com/sagemaker/latest/dg/sms-data-input.html
SageMaker Augmented Manifest Files: https://docs.aws.amazon.com/sagemaker/latest/dg/augmented-manifest.html

Example:

A normal Ground Truth manifest file:

{"source-ref":"s3://some_bucket/images/img1.png"}
{"source-ref":"s3://some_bucket/images/img2.png"}
...

What I want to be able to use:

{"source-ref":"s3://some_bucket/images/img1.png","labels":["pen","pencil","stick"]}
{"source-ref":"s3://some_bucket/images/img2.png","labels":["tv","laptop","phone"]}
...
已提问 5 年前679 查看次数
1 回答
0
已接受的回答

Hi sageuser, I'm an engineer at AWS. Augmented manifests are not supported for custom workflows, and so it is not possible to pass through additional parameters, e.g., "labels" in your example. We appreciate that you are using the service and welcome customer feedback. We can always be reached at https://aws.amazon.com/contact-us/.

AWS
已回答 5 年前
  • Is there any update on this?

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则