1.训练yolov5数据集时出现not enough values to unpack (expected 3, got 0)
原因:数据未归一化、数据集未转化成yolo格式([标签、x_center, y_center, w, h],center为图像中心点坐标、wh为图像相对整幅的比例)
2.TypeError: sequence item 0: expected str instance, list found
原因:list中有数字,无法直接转换为str
" ".join('%s' %a for a in lists)
3. UnicodeDecodeError: ‘gbk‘ codec can‘t decode bytein position 2: illegal multibyte sequence
原因:字符不能识别问题
打开文本时指明打开方式
file = open(path, encoding='utf-8')