max() arg is an empty sequence
bigFatCatTom opened this issue · comments
我在训练自己数据集的时候,
出现:
.../ReDet/mmdet/core/bbox/transforms_rbbox.py", line 567, in mask2poly_single
max_contour = max(contours, key=len)
ValueError: max() arg is an empty sequence。
这是我在制作数据局的过程中有什么忽视掉的地方么。
可能存在尺寸比较小的object,可以在dataset中加入尺寸判断:
Lines 130 to 132 in 0b9addf
或者在dataset中判断mask_to_counter是否成功,对无法生成contour的object进行过滤,参考:
ReDet/mmdet/core/bbox/transforms_rbbox.py
Lines 557 to 574 in 0b9addf
Hai @bigFatCatTom , I am getting the same error while trying to train ReDet on VisDrone dataset. Did you solve this issue? Please let me know.
Hai @bigFatCatTom , I am getting the same error while trying to train ReDet on VisDrone dataset. Did you solve this issue? Please let me know.
You can refer to the author's answer above