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

gefragt vor 3 Jahren868 Aufrufe
3 Antworten
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

beantwortet vor 3 Jahren
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. :)
beantwortet vor 3 Jahren
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
beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen