json用txt改完报错

json用txt改完报错,第1张

json文件出现txt出现问题

改完报错解决办法:parser = argparse.ArgumentParser() parser.add_argument( "C:/Users/zhang/Desktop/FLIR_ADAS_1_3/train", help='Directory of json files containing annotations') # json文件路径 parser.add_argument( "C:/Users/zhang/Desktop/FLIR_ADAS_1_3/train/labels", help='Output directory for image.txt files') # 生成的txt保存路径 args = parser.parse_args() json_files = sorted(glob.glob(os.path.join(args.path, '*.json File'))) # 得到json文件路径下的所有json文件

Traceback (most recent call last): File "main.py", line 15, in <module>json_files = sorted(glob.glob(os.path.join(args.path, '*.json File'))) # 得到json文件路径下的所有json文件AttributeError: 'Namespace' object has no attribute 'path'。

祝您生活愉快,谢谢提问

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/tougao/6042304.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-03-12
下一篇 2023-03-12

发表评论

登录后才能评论

评论列表(0条)

保存