mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Made error message slightly better.
This commit is contained in:
parent
cbda2b9e33
commit
984b694962
@ -143,9 +143,9 @@ void convert_dlib_xml_to_caffe_python_code(
|
||||
fout << "input_num_rows = " << layers.back().attribute("nr") << ";" << endl;
|
||||
fout << "input_num_cols = " << layers.back().attribute("nc") << ";" << endl;
|
||||
if (NR != layers.back().attribute("nr"))
|
||||
throw dlib::error("The dlib model requires input tensors with NUM_ROWS=="+to_string(layers.back().attribute("nr"))+", but the dtoc command line specified NUM_ROWS=="+to_string(NR));
|
||||
throw dlib::error("The dlib model requires input tensors with NUM_ROWS=="+to_string((long)layers.back().attribute("nr"))+", but the dtoc command line specified NUM_ROWS=="+to_string(NR));
|
||||
if (NC != layers.back().attribute("nc"))
|
||||
throw dlib::error("The dlib model requires input tensors with NUM_COLUMNS=="+to_string(layers.back().attribute("nc"))+", but the dtoc command line specified NUM_COLUMNS=="+to_string(NC));
|
||||
throw dlib::error("The dlib model requires input tensors with NUM_COLUMNS=="+to_string((long)layers.back().attribute("nc"))+", but the dtoc command line specified NUM_COLUMNS=="+to_string(NC));
|
||||
if (K != 3)
|
||||
throw dlib::error("The dlib model requires input tensors with NUM_CHANNELS==3, but the dtoc command line specified NUM_CHANNELS=="+to_string(K));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user