解决训练过程中出现的警告:
WARNING ⚠️ Box and segment counts should be equal, but got len(segments) = ****, len(boxes) = ****. To resolve this only boxes will be used and all segments will be removed. To avoid this please supply either a detect or segment dataset, not a detect-segment mixed dataset.
WARNING ⚠️ Box and segment counts should be equal, but got len(segments) = ****, len(boxes) = ****. To resolve this only boxes will be used and all segments will be removed. To avoid this please supply either a detect or segment dataset, not a detect-segment mixed dataset.
我从Roboflow标注网站的开源数据集中收集数据的时候,我发现获得的数据集中不会自动分开分割集与检测数据集(Polygon与Bounding Box类型的标注混杂在一起)
导致Yolov8运行的时候自动抛弃分割数据标注部分,导致数据集大量空缺,模型精度大幅下降(Polygon部分被抛弃)
观察txt文件,发现分割的