Commit b84e2123 authored by Davis King's avatar Davis King

Changed network filename to something more descriptive.

parent 36392bb2
......@@ -16,7 +16,7 @@
./dnn_semantic_segmentation_ex /path/to/VOC2012-or-other-images
An alternative to steps 2-4 above is to download a pre-trained network
from here: http://dlib.net/files/voc2012net.dnn
from here: http://dlib.net/files/semantic_segmentation_voc2012net.dnn
It would be a good idea to become familiar with dlib's DNN tooling before reading this
example. So you should read dnn_introduction_ex.cpp and dnn_introduction2_ex.cpp
......@@ -111,16 +111,16 @@ int main(int argc, char** argv) try
cout << "You call this program like this: " << endl;
cout << "./dnn_semantic_segmentation_train_ex /path/to/images" << endl;
cout << endl;
cout << "You will also need a trained 'voc2012net.dnn' file." << endl;
cout << "You will also need a trained 'semantic_segmentation_voc2012net.dnn' file." << endl;
cout << "You can either train it yourself (see example program" << endl;
cout << "dnn_semantic_segmentation_train_ex), or download a" << endl;
cout << "copy from here: http://dlib.net/files/voc2012net.dnn" << endl;
cout << "copy from here: http://dlib.net/files/semantic_segmentation_voc2012net.dnn" << endl;
return 1;
}
// Read the file containing the trained network from the working directory.
anet_type net;
deserialize("voc2012net.dnn") >> net;
deserialize("semantic_segmentation_voc2012net.dnn") >> net;
// Show inference results in a window.
image_window win;
......
......@@ -23,7 +23,7 @@
./dnn_semantic_segmentation_ex /path/to/VOC2012-or-other-images
An alternative to steps 2-4 above is to download a pre-trained network
from here: http://dlib.net/files/voc2012net.dnn
from here: http://dlib.net/files/semantic_segmentation_voc2012net.dnn
It would be a good idea to become familiar with dlib's DNN tooling before reading this
example. So you should read dnn_introduction_ex.cpp and dnn_introduction2_ex.cpp
......@@ -187,4 +187,4 @@ using anet_type = dlib::loss_multiclass_log_per_pixel<
// ----------------------------------------------------------------------------------------
#endif // DLIB_DNn_SEMANTIC_SEGMENTATION_EX_H_
\ No newline at end of file
#endif // DLIB_DNn_SEMANTIC_SEGMENTATION_EX_H_
......@@ -371,7 +371,7 @@ int main(int argc, char** argv) try
net.clean();
cout << "saving network" << endl;
serialize("voc2012net.dnn") << net;
serialize("semantic_segmentation_voc2012net.dnn") << net;
// Make a copy of the network to use it for inference.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment