解决AssertionError: Label class 15 exceeds nc=1 in data/coco128.yaml. Possible class labels are 0-0

解决AssertionError: Label class 15 exceeds nc=1 in data/coco128.yaml. Possible class labels are 0-0

报错信息

AssertionError: Label class 15 exceeds nc=1 in 
data/coco128.yaml. Possible class labels are 0-0
Scanning 'coco128\labels\train2017.cache' for images and labels... 1 found, 0 missing, 0 empty, 0 corrupted: 100%|█| 1/1 [00:0

解决办法

coco128\labels\train2017 里的.txt文件下标从0开始

欢迎大家交流学习,任何问题都可以留言

你可能感兴趣的:(日常报错,yaml,bug,debug,python)