-
Notifications
You must be signed in to change notification settings - Fork 2.4k
SampleContribute
Kate Generalova edited this page Jul 13, 2021
·
12 revisions
The Inference Engine sample applications are simple console applications that show how to utilize specific Inference Engine capabilities within an application, assist developers in executing specific tasks such as loading a model, running inference, querying specific device capabilities and etc.
Main Goal of Sample: Illustrate the primary, basic use case of the Inference Engine API
Requirements:
- Each sample should represent the main flow to inference with OpenVINO(TM). Add commit blocks for each Integration step from the flow like in other samples.
- Add explicit comments to your code if needed. It may help new users to understand your sample.
- Create README.md for your sample with the following sections and following our Documentation guidelines:
- Description - a short description about the sample, used features, and model type
- Table of API
- Table of common values, like (validated model, validated input data, supported devices, other language realization)
- How It Works
- Building
- Running
- Sample Output
- See Also - section with useful links to proceed
- Description - a short description about the sample, used features, and model type
-
REQUIRED: The README title must contain a document label in a form:
{#openvino_inference_engine_<bridge>_sample_<name>}
. For example:Style Transfer Python* Sample {#openvino_inference_engine_ie_bridges_python_sample_style_transfer_sample_README}
.- Add your file to the documentation structure. Open the documentation structure file [
docs/doxygen/openvino_docs.xml
] and add your file path and a sample name to the "IE Code Samples" section. - Add link to your sample to docs/IE_DG/Samples_Overview.md
- Add your file to the documentation structure. Open the documentation structure file [
- Please follow repo code style, we have linter checks for each PR.
- We have two types of samples:
- with
hello_
prefix. Samples work with only one input file and don't have argument parsers. Don't have explicit step-by-step output, only results. - full sample. Samples work with arguments, support some inputs, and explicit output for each step. Common arguments:
- -i / –-input - path to an input data
- -m / –-model - path to a model
- -d / --device - name of a device
- -h / --help - help message
- One sample - one type of model and no more than 2 API special features.
- Each API feature should be documented with code snippets on our OpenVINO Documentation site
- Prefer sample development with a one-source approach, without explicit pre/post-processing steps if it is possible.
- Prefer C++/Python realizations for each sample (C is optional).
- Set name for your sample in the format: "
model_type
feature
lang
Sample"-
feature
is optional in case your sample represents a new model.
-
- Add your samples files to CMakeLists.txt
Please take it in your mind before creating your sample.
© Copyright 2018-2024, OpenVINO team
- Home
- General resources
- How to build
-
Developer documentation
- Inference Engine architecture
- CPU plugin
- GPU plugin
- HETERO plugin architecture
- Snippets
- Sample for IE C++/C/Python API
- Proxy plugin (Concept)
- Tests