Converting model to MyriadX blob

To allow DepthAI to use your custom trained models, you need to convert them into a MyriadX blob file format - so that they are optimized for the best inference on MyriadX VPU processor.

There are two conversion steps that have to be taken in order to obtain a blob file:

  • Use Model Optimizer to produce OpenVINO IR representation (where IR stands for Intermediate Representation)

  • Use Model Compiler to convert IR representation into MyriadX blob

Image below (from OpenCV Courses site) shows these steps

Model Compile Steps

Below, please find instructions on how to perform these steps using different methods

Local compilation

If you want to perform model conversion and compilation, you can follow:

Using Google Colab

You can also train and convert models using Google Colab notebook. You can take a look at our Custom training page, where every tutorial contains also conversion & compilation steps performed directly inside the notebooks.

An example notebook with the compilation steps is here

Using online converter

You can also visit our online MyriadX Blob converter at, that allows to specify different OpenVINO target versions and supports conversions from TensorFlow, Caffe, OpenVINO IR and OpenVINO Model Zoo

BlobConverter Web

Using blobconverter package

For automated usage of our blobconverter tool, we have released a blobconverter PyPi package, that allows compiling MyriadX blobs both from the command line and from the Python script directly.

Install and usage instructions can be found here

Got questions?

We’re always happy to help with code or other questions you might have.