From 70b885eb0b25c01cb70240ddbb50c580ee53fdcd Mon Sep 17 00:00:00 2001 From: Davis King Date: Sun, 7 May 2017 19:12:12 -0400 Subject: [PATCH] Added a note about exporting to XML. --- examples/dnn_introduction_ex.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/dnn_introduction_ex.cpp b/examples/dnn_introduction_ex.cpp index cbb642432..6ae3ddf73 100644 --- a/examples/dnn_introduction_ex.cpp +++ b/examples/dnn_introduction_ex.cpp @@ -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) {