thtrieu / darkflow

Translate darknet to tensorflow. Load trained weights, retrain/fine-tune using tensorflow, export constant graph def to mobile devices
GNU General Public License v3.0
6.13k stars 2.08k forks source link

labels.txt and cfg/tiny-yolo-voc.cfg indicate inconsistent class numbers #354

Open LiangHao92 opened 7 years ago

LiangHao92 commented 7 years ago

I have tried to translate yolo'.weights to .pb, and succeed. But when I tried on tiny-yolo, it said

labels.txt and cfg/tiny-yolo-voc.cfg indicate inconsistent class numbers

my labels.txt has only one labels, and .cfg is copied from darknet, and the classes has been changed 1. How can I get through it

jubjamie commented 7 years ago

Are you retraining tiny-yolo? Not sure why you're translating to .pb but then trying to edit the model to show one class? You usually get this error when trying to train a model but your labels and cfg are not compatible.