caffe icon indicating copy to clipboard operation
caffe copied to clipboard

Check failed: label_to_name_.find(label) !=lable_to_name_.name() Cannot find label: 2 in the label map

Open WillyPKU opened this issue 9 years ago • 2 comments

Hello@weiliu89, Thanks for your work~ Recently,I have train SSD300 on SynthText dataset. My labelmap_synthtext.prototxt has 2 items including "background" with label "0"and "Text"with label "1".But in training process, when it comes to "Testing net",it has error "F1027 detection_output_layer.cu:143] Check failed: label_to_name_.find(label) !=lable_to_name_.name() Cannot find label: 2 in the label map." Can u help me? Thanks a lot~

WillyPKU avatar Oct 27 '17 08:10 WillyPKU

@weiliu89

WillyPKU avatar Oct 27 '17 13:10 WillyPKU

maybe it's because it used to be 21 class, but now there is only 2 class. Maybe you can change 21 in test.prototxt to 2.

vividX avatar Dec 01 '17 12:12 vividX