- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
Hey mymingle
Unfortunately the custom labels console does not support attaching multiple labels to a single image using the autolabel feature. I have passed on this feedback to the corresponding team.
You can follow the below sample format when manually creating a multi label manifest file (expanding on the example specified here https://docs.aws.amazon.com/rekognition/latest/customlabels-dg/cd-required-fields.html):
{
"source-ref": "S3 bucket location", # Required
"sport0":0, # FIRST annotation
"sport0-metadata": { # Required
"class-name": "football", # Required
"confidence": 0.8, # Required
"type":"groundtruth/image-classification", # Required
"job-name": "identify-sport", # Not required
"human-annotated": "yes", # Required
"creation-date": "2018-10-18T22:18:13.527256" # Required
},
"sport1":1, # SECOND annotation
"sport1-metadata": { # Required
"class-name": "ball", # Required
"confidence": 0.8, # Required
"type":"groundtruth/image-classification", # Required
"job-name": "identify-sport", # Not required
"human-annotated": "yes", # Required
"creation-date": "2018-10-18T22:18:13.527256" # Required
}
} # end of annotations for 1 image
The above line attaches labels "football" and "ball" to the same image.
You can use any string instead of "sport0", "sport1" etc but you must ensure there is a corresponding "-metadata" field. For e.g. if you use "some-label1", ensure it is followed by a "some-label1-metadata" section.
Each "some-label<N>", <some-label<N>-metadata" pair represents ONE annotation.
Hope this helps.
Reposting example with formatting -
{
"source-ref": "S3 bucket location", # Required
"sport0":0, # FIRST annotation
"sport0-metadata": { # Required
"class-name": "football", # Required
"confidence": 0.8, # Required
"type":"groundtruth/image-classification", # Required
"job-name": "identify-sport", # Not required
"human-annotated": "yes", # Required
"creation-date": "2018-10-18T22:18:13.527256" # Required
},
"sport1":1, # SECOND annotation
"sport1-metadata": { # Required
"class-name": "ball", # Required
"confidence": 0.8, # Required
"type":"groundtruth/image-classification", # Required
"job-name": "identify-sport", # Not required
"human-annotated": "yes", # Required
"creation-date": "2018-10-18T22:18:13.527256" # Required
}
} # end of annotations for 1 image
Edited by: awsrakesh on Mar 24, 2020 1:56 PM
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 3 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren