// The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt /* This example shows how to classify an image into one of the 1000 imagenet clategories using the deep learning tools from the dlib C++ Library. We will use the pretrained ResNet34 model available on the dlib website. The ResNet34 model is from Deep Residual Learning for Image Recognition by He, Zhang, Ren, and Sun. These tools will use CUDA and cuDNN to drastically accelerate network training and testing. CMake should automatically find them if they are installed and configure things appropriately. If not, the program will still run but will be much slower to execute. */ #include #include #include #include #include using namespace std; using namespace dlib; // ---------------------------------------------------------------------------------------- template