Azure ML自动化实验报错“All annotations provided are ill-formed”求助
解决Azure ML AutoML图像实验"All annotations provided are ill-formed"错误
首先看你提供的.jsonl片段,存在明显的JSON语法错误:
label数组中第二个标注对象末尾多了一个逗号(},),JSON不允许数组最后一个元素后加逗号- 整个JSON对象未闭合:
label数组缺少结束括号],外层对象也缺少结束括号}
修正后的合法JSON示例如下:
{ "image_url": "azureml://subscriptions/06c91f00-f9e6-48b2-beb5-62e618ed6e5b/resourcegroups/dev-vision/workspaces/Sauron-Dev-III/datastores/workspaceblobstore/paths/UI/2025-04-25_032350_UTC/images/train_0.jpg", "image_details": { "format": "jpg", "width": 2336, "height": 4160 }, "label": [ { "label": "object", "topX": 0.06878, "topY": 0.17758, "bottomX": 0.13955, "bottomY": 0.26918 }, { "label": "object", "topX": 0.41931, "topY": 0.63591, "bottomX": 0.45139, "bottomY": 0.73049 } ] }
除语法问题外,还可排查以下潜在问题:
- 确保所有标注的
topX/topY/bottomX/bottomY值严格处于0-1区间,无超出范围的数值 - 确认
image_details中的width和height与实际图片尺寸完全匹配,避免归一化计算偏差 - 检查整个.jsonl文件的每一行都是独立合法的JSON对象,无跨行、格式混乱情况
- 若使用
isCrowd字段,需保证其值为布尔类型(true/false),不可用字符串或其他类型替代
内容的提问来源于stack exchange,提问作者Ethan Fischer
相关产品推荐
相关产品推荐

