Welcome back . Getting started with OpenVINO is easy,
but how do I create a real application?
In previous video we’ve seen how to install and get started with OpenVINO 2022
If you’d like to learn and to explore, it is as easy as this
Find the openvino notebooks Pick one… there are many.. Many
Hello world for example I’ll run the binder
No need to install anything..
But it takes a while to build the environment for you..
And that’s all.. Run cell by cell to see how it work.
But if you are looking for a full working demo,
here are the simple steps.. I’ll leave you the instructions..
Search for OV demos.. This is the page
You can see here all the demos
Each one will include the description, the instructions and other information..
For each of the demos you’ll need to download the models. Here
Then to convert.. Here And basically run the demo
But first let’s clone the repository
Git Clone the repository
and all the demos are here Get in,
To demos Lot’s of demos here
Under the demo directory, you have the python code, and also C++ code if exist..
Under python, you can see the README file
The python code And a list of the models supported by that demo,
And the following steps are the same for each of the OV demos
First we download the relevant models,
Then we convert and optimize them using the model optimizer
Then we need to make sure we got the other collaterals,
sometimes it’s an input video, sometimes text or other..
And we can run the demo.
Let’s try GPT-2 text prediction for example, python
The models list includes only GPT2
And the README file all the instructions.. Download .. And then convert..
Let’s download the model.. GPT-2
And Convert it to OV format
First it’s converted to ONNX then to IR..
FP16 and FP32 And the XML and BIN files are here
Let’s run the model –h for help We’ll need a model,
We’ll need a vocabulary file and merges file
They should all be here, so let’s find them… And now run the model with all the inputs
I’ll just use a random input.. The sun is so far from us…
Processing and I got some text generated.. The sun is so far from us my dear and so on..
Pretty cool. Download, convert,
make sure you have the input files and run.
And last
on the same demo page, you can find link to input videos you can use
All kinds of simple videos, no legal rights constraints , you can use them for the demos..
Here is a link to all the models in the model zoo You can see them all here, object detection,
image, text and so on If you click on the model,
you can find the specifications, data-set used, input outputs and more
And if you’d like to build the C++ demos,
here are the instructions for Linux or videos. As simple as that
Demos and sample code are a great start for building a real application,
The demos, the code, the models, are all yours,
you can use them for production. So what are you waiting for
Subscribe, thank you.