无法解析自定义 AWS Ground Truth 标记作业清单 JSONL 文件

问题描述

由于我的 AWS 账户的限制,我需要为 GroundTruth 标签作业手动创建标签作业清单文件。然而,清单文件解析失败,即使文件似乎符合 JSONL 标准 - https://jsonlines.org/

'The S3 Input location is verified as accessible by your IAM execution role. However,there was an issue parsing your input manifest file. Do the following: Check that your input manifest follows JSON Lines format. Update your input manifest file and try your request again.'

我正在使用以下 python 代码生成 JSONL 文件

items = [{"source-ref": "s3://bucket/file3.jpg"},{"source-ref": "s3://bucket/file2.jpg"},{"source-ref": "s3://bucket/file1.jpg"}]

import json

with open('labeling-job.jsonl','w',encoding='utf8') as outfile:
    for entry in items:
        json.dump(entry,outfile,ensure_ascii=False)
        outfile.write('\r\n')

有人能指出我在这里做错了什么吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)