yijingru / BBAVectors-Oriented-Object-Detection

[WACV2021] Oriented Object Detection in Aerial Images with Box Boundary-Aware Vectors
MIT License
462 stars 87 forks source link

TypeError: 'int' object is not iterable #121

Open zysc1996 opened 2 years ago

zysc1996 commented 2 years ago

您好!首先,非常感谢您的工作! 我在训练DOTA1.5数据集时出现了一个报错,想请您帮忙看一下。 我对数据进行了正常裁减,并针对标签进行了筛选,只保留了large-vehicle这一类的标签和影像。 在正常训练了两个Iter之后,代码报错TypeError: 'int' object is not iterable. 报错位置是train.py下的collater函数,第十七行 for name in sample 我将shuffle关闭后检查了对应标签,并没有发现异常,尝试从collater函数中反解异常标签但是没有成功 希望您能帮忙看一下!万分感谢!

yijingru commented 2 years ago

Hmm.. 从base.py看,应该是要返回dictionary,你可以catch exception,然后打印一下sample,可能是个error(-1)返回值?

zysc1996 commented 2 years ago

我重新处理了一遍数据,没有再报错了,应该是系统运行的时候损坏了文件,感谢您的回复