SageMaker Labelling Job: Creating a labelling job for annotating images with a bounding box fails #3698
-
Hi, I am trying to create a labelling job on SageMaker for labelling the images by drawing a bounding box around it. I have successfully created one from the AWS console but I am unable to make it successful using the boto3 function Here is the code and the function parameters I used. They are similar to the example from the GitHub amazon-sagemaker-examples but unfortunately it did not work as expected. I can create the job, label the images and the status of the job gets completed. But the output manifest file does not store the annotations numbers.
My label config file looks like the following: The manifest file looks like:
And the HTML file is a standard crowd liquid files taken from the github sagemaker examples: <script src="https://assets.crowd.aws/crowd-html-elements.js"></script> Once this function is executd, I am able to label the images and the labelling job status changes to 'COMPLETE'. But the output manifest files looks like the following:
The image size is weird and the annotations are empty. Can someone help me if I am doing anything wrong and how do I make this work? Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The problem is resolved. It seems that in the label config file, the "document-version": "2018-11-28" is incorrect although this was what was mentioned in the boto3 documentation. The correct document version is "2021-05-13". By changing this, the labelling job was able to record the annotations in the output manifest file. I hope this would help others who are trying to the same since the official boto3 documentation has a different version given which does not work. |
Beta Was this translation helpful? Give feedback.
The problem is resolved. It seems that in the label config file, the "document-version": "2018-11-28" is incorrect although this was what was mentioned in the boto3 documentation. The correct document version is "2021-05-13". By changing this, the labelling job was able to record the annotations in the output manifest file.
I hope this would help others who are trying to the same since the official boto3 documentation has a different version given which does not work.