JSON format error in Manifest file

0

Hi'
im' trying to setup a training dataset for object localization using the manifest method. Im' getting the following error:
401: The S3 input manifest file s3://custom-labels-console-us-east-1-833b01ea2f/datasets/TestTrainingSet/manifests/output/output.manifest does not have the correct JSON format.

I couldn't figure out what's wrong with the json, was hoping somebody could help me resolving the issue.
Following is the json for one of image files.

{"source-ref": "s3://custom-labels-console-us-east-1-833b01ea2f/DentalCEPH/TrainingData/001.png", "bounding-box": {"image_size": [{"width": 1935, "height": 2400, "depth": 3}], "annotations": [{"class_id": 0, "top": 929, "left": 768, "width": 128, "height": 128}, {"class_id": 1, "top": 968, "left": 1405, "width": 128, "height": 128}]}, "bounding-box-metadata": {"objects": [{"confidence": 1}, {"confidence": 1}], "class-map": {"0": "sella turcica", "1": "nasion", "2": "orbitale", "3": "porion", "4": "subspinale", "5": "supramentale", "6": "pogonion", "7": "menton", "8": "gnathion", "9": "gonion", "10": "lower incisal incision", "11": "upper incisal incision", "12": "upper lip", "13": "lower lip", "14": "subnasale", "15": "soft tissue pogonion", "16": "posterior nasal spine", "17": "anterior nasal spine", "18": "articulate"}, "type": "groundtruth/object-detection", "human-annotated": "yes", "creation-date": "2020-11-18T02:53:27", "job-name": "custom labels"}}

Thank you,
V.Vamsi Krishna

Edited by: vkrishna on Mar 7, 2021 3:53 AM

asked 3 years ago856 views
4 Answers
0

Just in case some poor soul runs into this same damn issue.
When using python for creating the manifest file don't re-direct the output to the manifest file. Open a file from within the script and write the json value.

FacePalm

answered 3 years ago
0

Hi Vamsi,

seems like you found the solution. If you run into any other issues, please let us know. We are happy to assist you. :)
answered 3 years ago
0

vkrishna,

I am getting this error too and can't figure out where I am going wrong. I've formatted my manifest file as described at https://docs.aws.amazon.com/rekognition/latest/customlabels-dg/cd-manifest-files-object-detection.html and I used R to create the file (and wrote to a new file as you suggested for python). Could you provide the python code that you used to finally get it working? Or any other tips/suggestions.

Thanks,
S

ssanto
answered 3 years ago
0

Hi ssanto,

I can help you debug the issue if you would like to share via private message a recent project version name that exhibited the issue you're describing.

Thanks,
ChristianDAtAWS

AWS
answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions