Added a note about exporting to XML.

This commit is contained in:
Davis King 2017-05-07 19:12:12 -04:00
parent 482c2db7ba
commit 70b885eb0b
1 changed files with 5 additions and 0 deletions

View File

@ -157,6 +157,11 @@ int main(int argc, char** argv) try
cout << "testing num_wrong: " << num_wrong << endl;
cout << "testing accuracy: " << num_right/(double)(num_right+num_wrong) << endl;
// Finally, you can also save network parameters to XML files if you want to do
// something with the network in another tool. For example, you could use dlib's
// tools/convert_dlib_nets_to_caffe to convert the network to a caffe model.
net_to_xml(net, "lenet.xml");
}
catch(std::exception& e)
{