1.not found database
查看路径的斜杠和反斜杠是不是写错了 用绝对路径会避免很多错误 一定要注意斜杠和反斜杠的位置
2. AssertionError: train: No labels in F:\MV\yolov5-5.0\VOCdevkit\labels\train.cache. Can not train without labels
是因为数据标签要是txt格式的不能是xml格式的 要用yolo格式的txt文件 下载labelimg JPEGImages用这个软件来标注 注意:不要用精灵标注助手 没有txt格式的文件保存方式
3. indices.append((b, a, gj.clamp_(0, gain[3] - 1), gi.clamp_(0, gain[2] - 1))) # image, anchor, grid indices
RuntimeError: result type Float can't be cast to the desired output type __int64
新旧版本的torch不一样 旧版本的torch可以转换数据类型 新版本不可以 要在gain[3]和gain[2]后面加上.long()来转换一下数据类型
4.运行过程中想要看模型的话
tensorboard --logdir=runs/train
5.测试完之后 图片没有变化 框不出来结果 降低置信度置和iou的值
6.想要调用摄像头 吧default的值设置为0就可以了 并且修改datasets 第279行 吧url类型修改为str类型的就可以了