.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "build/examples_deployment/cpp_inference.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_build_examples_deployment_cpp_inference.py: 2. GluonCV C++ Inference Demo ================================ This is a demo tutorial which illustrates how to use existing GluonCV models in c++ environments given exported JSON and PARAMS files. Please checkout :ref:`Export Network ` for instructions of how to export pre-trained models. Demo usage ---------- .. code:: bash # with yolo3_darknet53_voc-0000.params and yolo3_darknet53-symbol.json on disk ./gluoncv-detect yolo3_darknet53_voc demo.jpg .. figure:: https://user-images.githubusercontent.com/3307514/45458507-d76ff600-b6a8-11e8-92e1-0b1966e4344f.jpg :alt: demo demo Usage: :: SYNOPSIS ./gluoncv-detect [-o ] [--class-file ] [-e ] [--gpu ] [-q] [--no-disp] [-t ] OPTIONS -o, --output output image, by default no output --class-file plain text file for class names, one name per line -e, --epoch Epoch number to load parameters, by default is 0 --gpu Which gpu to use, by default is -1, means cpu only. -q, --quite Quite mode, no screen output --no-disp Do not display image -t, --thresh Visualize threshold, from 0 to 1, default 0.3. Source Code and Build Instructions ---------------------------------- The C++ demo code and build instructions are available in our repository `scripts `_. .. hint:: Prebuilt binaries are `available `_ for Linus, Mac OS and Windows. And you can also build MXNet from `source `_ to support C++ inference demo. .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.000 seconds) .. _sphx_glr_download_build_examples_deployment_cpp_inference.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: cpp_inference.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: cpp_inference.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_