[Example Request]JumpStart manifest file usage for object classification
Describe the use case example you want to see An example of how you would use a manifest file instead of pointing at the images directories for the following example notebook. https://github.com/aws/amazon-sagemaker-examples/blob/main/introduction_to_amazon_algorithms/jumpstart_image_classification/Amazon_JumpStart_Image_Classification.ipynb
How would this example be used? Please describe. With a Ground Truth manifest file.
Describe which SageMaker services are involved SageMaker JumpStart
Describe what other services (other than SageMaker) are involved* Ground Truth
Describe which dataset could be used. Provide its location in s3://sagemaker-sample-files or another source. I am trying to create a TrainingInput that will work with the example notebook provided, but I keep getting errors saying that there are no files.
I have tried both ManifestFile and AugmentedManifest file. Here is an example of what I have tried:
ti = TrainingInput(s3_data="s3://some-bucket/auto-label.manifest", distribution='FullyReplicated', s3_data_type="AugmentedManifestFile", input_mode="Pipe", #"File for ManifestFile attribute_names=["source-ref", "auto-label-metadata"], ) ic_estimator.fit(inputs={"train": ti}, logs=True)
And here is what the .manifest file looks like:
{"source-ref": "s3://image-bucket/sig_extracted/my-folder/run2/some-img.png", "auto-label-metadata": {"confidence": 1, "job-name": "labeling-job/auto-label", "class-name": "class1", "human-annotated": "yes", "creation-date": "2023-04-03T15:11:14.901287", "type": "groundtruth/image-classification-multilabel"}} {"source-ref": "s3://.... cont'd
Error:
Images for this model will be resized to image size: [299, 299]
Traceback (most recent call last):
File "/opt/ml/code/transfer_learning.py", line 89, in