当使用object_detection_augmented_manifest_training.ipynb训练模型时"ClientError: XXXX“

0

【以下的问题经过翻译处理】 你好,我的目标是为花园鸟类创建一个模型。我有293张鸟类照片,通过两个自定义标记任务进行了训练和验证。我遇到的问题是在边界框上有多个标签,我通过创建一个带有以下标签的自定义标记作业来解决了这个问题:

<crowd-bounding-box
    name="annotatedResult"
    labels="['Blackbird', 'Blue tit', 'Coal tit', 'Dunnock', 'Great tit', 'Long-tailed tit', 'Nuthatch', 'Pigeon', 'Robin']" .....

现在我有两个具有以下许多行的输出文件:

{"source-ref":"s3://XXXXX/Blackbird_1.JPG","BirdLabel":{"workerId":"privateXXXXX","imageSource":{"s3Uri":"s3://XXXXX/Blackbird_1.JPG"},"boxesInfo":{"annotatedResult":{"boundingBoxes":[{"width":1619,"top":840,"label":"Blackbird","left":1287,"height":753}],"inputImageProperties":{"width":3872,"height":2592}}}},"BirdLabel-metadata":{"type":"groundtruth/custom","job-name":"birdlabel","human-annotated":"yes","creation-date":"2019-01-10T15:41:52+0000"}}

在这个作业成功后,我使用 object_detection_augmented_manifest_training 模板创建了一个 ml.p3.2xlarge 实例。

我填写了必要的部分,然后运行它并在将 Content Type 设置为 'application/x-image'Record wrapper type:RecordIO 时接收到这个错误:'ClientError: train channel is not specified.'

然后,我把通道改为 train_annotation 而不是 train ,然后收到这个错误消息:"ClientError: Unable to initialize the algorithm. Failed to validate input data configuration. (caused by ValidationError)\n\nCaused by: u'train' is a required property

如果需要,我可以提供更多信息。

任何帮助都将不胜

profile picture
专家
已提问 8 个月前21 查看次数
1 回答
0

【以下的回答经过翻译处理】 感谢您在面对一些困难时继续尝试使用我们的服务。请您把您的增强清单与以下链接中展示的示例进行交叉参考:https://aws.amazon.com/blogs/aws/amazon-sagemaker-ground-truth-build-highly-accurate-datasets-and-reduce-labeling-costs-by-up-to-70/, https://github.com/awslabs/amazon-sagemaker-examples/blob/master/ground_truth_labeling_jobs/object_detection_augmented_manifest_training/object_detection_augmented_manifest_training.ipynb, 和 https://github.com/awslabs/amazon-sagemaker-examples/blob/master/ground_truth_labeling_jobs/ground_truth_object_detection_tutorial/object_detection_tutorial.ipynb

看起来您的格式有些不同,例如算法希望看到名称为“annotations”和“image_size”的键。请您检查语法并告知我们结果是否改变。

profile picture
专家
已回答 8 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则