convert_ annotation( nameWithoutExtention) # convert LabelFile "XXX(运行文件路径)", line 50, in convert_ a..._attributeerror: 'nonetype' object has no a">
当前位置:   article > 正文

YOLO v5转数据集时出现AttributeError: ‘ NoneType‘ object has no attribute ‘text ‘ 报错——解决办法_attributeerror: 'nonetype' object has no attribute

attributeerror: 'nonetype' object has no attribute 'text

 VOC标签格式转yolo格式并划分训练集和测试集时,出现如下报错:

Traceback (most recent call Last) :

        File "XXX(运行文件路径)", line 134, in <moduLe>

                convert_ annotation( nameWithoutExtention) # convert Label

        File "XXX(运行文件路径)", line 50, in convert_ annotation

                difficult = obj. find( 'difficult' ) . text

AttributeError: ' NoneType' object has no attribute 'text '

Process finished with exit code 1    #表示文件代码运行失败报错

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/煮酒与君饮/article/detail/759072
推荐阅读
相关标签
  

闽ICP备14008679号