Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在此处输入图像描述 我已经修改了 label.txt & tiny-yolo.cfg 但它仍然显示 AssertionError: labels.txt and cfg/yolov2.cfg 指示不一致的类号
首先我看到你有 tiny-yolo.cfg 和 yolov2.cfg,看起来你修改了 tiny-yolo.cfg 但你的代码运行的是旧文件 yolov2.cfg。
尝试训练模型时通常会出现此错误,但您的 labels.txt 和 cfg 不兼容。下载新的或编辑 cfg 文件的新副本,然后重试。记得将原件留在同一个文件夹中。