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/yolo.cfg indicate inconsistent class numbers How can I fix? #1119

Closed HongYg closed 4 years ago

HongYg commented 4 years ago

(cfg/yolo.cfg) [region] anchors = 0.57273, 0.677385, 1.87446, 2.06253, 3.33843, 5.47434, 7.88282, 3.52778, 9.77052, 9.16828 bias_match=1 classes=6 coords=4 num=5 softmax=1 jitter=.3 rescore=1 ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ (label.txt) Trespass Fall Dumping Fight Fire Walk

ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ

yolo.cfg ->classes :6 label.txt ->classes: 6

but doen't work. I need your help , thanks a lot

I speak english just little, sorry for explanation

HongYg commented 4 years ago

I solved this problem rename cfg file yolo.cfg-> anyname.cfg