Skip to content

Commit

Permalink
Add note about using benchmark_app in notebook to 104 (#178)
Browse files Browse the repository at this point in the history
* Add note about using benchmark_app in notebook to 104

* Update notebooks/104-model-tools/104-model-tools.ipynb

Co-authored-by: Ryan Loney <[email protected]>
  • Loading branch information
helena-intel and ryanloney authored Jul 21, 2021
1 parent 811c3c7 commit fae772f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions notebooks/104-model-tools/104-model-tools.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -317,15 +317,17 @@
"\n",
"The following cells show some examples of `benchmark_app` with different parameters. Some useful parameters are:\n",
"\n",
"- `-d` Device to use for inference. For example: CPU, GPU, MULTI\n",
"- `-t` Time in number of seconds to run inference\n",
"- `-api` Use asynchronous (async) or synchronous (sync) inference\n",
"- `-b` Batch size\n",
"- `-d` Device to use for inference. For example: CPU, GPU, MULTI. Default: CPU\n",
"- `-t` Time in number of seconds to run inference. Default: 60\n",
"- `-api` Use asynchronous (async) or synchronous (sync) inference. Default: async\n",
"- `-b` Batch size. Default: 1\n",
"\n",
"\n",
"Run `! benchmark_app --help` to get an overview of all possible command line parameters.\n",
"\n",
"In the next cell, we define a `benchmark_model()` function that calls `benchmark_app`. This makes it easy to try different combinations. In the cell below that, we display the available devices on the system."
"In the next cell, we define a `benchmark_model()` function that calls `benchmark_app`. This makes it easy to try different combinations. In the cell below that, we display the available devices on the system.\n",
"\n",
"> **NOTE**: In this notebook we run benchmark_app for 15 seconds to give a quick indication of performance. For more accurate performance, we recommended running inference for at least one minute by setting the `t` parameter to 60 or higher, and running `benchmark_app` in a terminal/command prompt after closing other applications. You can copy the _benchmark command_ and paste it in a command prompt where you have activated the `openvino_env` environment. "
]
},
{
Expand Down

0 comments on commit fae772f

Please sign in to comment.