I am following the documentation on how to Prepare image training data for Object Classifiction which creates a JSONL schema like:
{
"[imageGcsUri](https://cloud.google.com/vertex-ai/docs/image-data/classification/prepare-data#imagegcs)": "gs://bucket/filename.ext",
"[classificationAnnotation](https://cloud.google.com/vertex-ai/docs/image-data/classification/prepare-data#class-annotation)": {
"[displayName](https://cloud.google.com/vertex-ai/docs/image-data/classification/prepare-data#display-name)": "LABEL",
"[annotationResourceLabels](https://cloud.google.com/vertex-ai/docs/image-data/classification/prepare-data#annotation-label)": {
"aiplatform.googleapis.com/annotation_set_name": "displayName",
"env": "prod"
}
},
"[dataItemResourceLabels](https://cloud.google.com/vertex-ai/docs/image-data/classification/prepare-data#dataitem-label)": {
"aiplatform.googleapis.com/ml_use": "training/test/validation"
}
}
So I prepare a JSONL file like:
{"imageGcsUri":"gs://my-bucket-url/1/IMG_0822.jpg","classificationAnnotation":{"displayName":"1"}}
{"imageGcsUri":"gs://my-bucket-url/2/IMG_0823.jpg","classificationAnnotation":{"displayName":"2"}}
{"imageGcsUri":"gs://my-bucket-url/3/IMG_0824.jpg","classificationAnnotation":{"displayName":"3"}}
{"imageGcsUri":"gs://my-bucket-url/4/IMG_0825.jpg","classificationAnnotation":{"displayName":"4"}}
However, the upload fails in Vertex due to unknown issue as the error message is blank.
If I remove the classificationAnnotation field, the upload succeeds.
The documentation says the imageGcsUri field is the only required field.
What is wrong with my syntax of including classificationAnnotation?