错误原因是json文件太大,改为单行读取:
with open("COCO_train.json", "r+") as f:
data = json.load(f)
改为:
with open("COCO_train.json", "r+") as f:
data = f.readline()
wx5ba0c87f1984b 博主文章分类:异常处理 ©著作权
错误原因是json文件太大,改为单行读取:
with open("COCO_train.json", "r+") as f:
data = json.load(f)
改为:
with open("COCO_train.json", "r+") as f:
data = f.readline()
上一篇:UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xff in position 0: invalid start byte
下一篇:tf.compat
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M