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"]}
...
posta 5 anni fa679 visualizzazioni
1 Risposta
0
Risposta accettata

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
con risposta 5 anni fa
  • Is there any update on this?

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande