# Model Zoo

DepthAI Model Zoo is a collection of neural network models deployable to
[OAK](https://shop.luxonis.com/collections/oak-cameras-1). You can access the full list of models directly in our [GitHub
repository](https://github.com/luxonis/depthai-model-zoo/tree/main/models). For licensing, please refer to the information in
`model.yml` in the model's respective directory.

## How to use

There are different ways to access the models from the DepthAI model zoo.

> **Note**
> Note that the models in the DepthAI Model Zoo are exported such that they expect images with values in the `[0-255]` range, BGR (Blue Green Red) color order, and CHW (Channel Height Width) channel layout.

### Python (DepthAI)

To use seamlessly with DepthAI, you can use our BlobConverter library:

 * Install BlobConverter using `pip`:

```bash
pip install blobconverter
```

 * Call `from_zoo` method with `zoo_type="depthai"`, the `name` of the model that you want, and a number of `shaves` to use:

```python
import blobconverter
model_path = blobconverter.from_zoo(
        name="yolop_320x320",
        zoo_type="depthai",
        shaves=6
    )
```

It is also possible to download models from [Open Model Zoo](https://github.com/openvinotoolkit/open_model_zoo) by setting
`zoo_type="intel"`. And by calling `blobconverter.zoo_list(zoo_type=...)` you can get the list of all models available in the
chosen zoo.

 * Pass the `model_path` to the neural network node:

```python
neural_network.setBlobPath(model_path)
```

> **Note**
> The default path for the downloaded blob is the `~/.cache/blobconverter` directory. It is arbitrary and can be specified by setting the `output_dir` parameter.

### BlobConverter interface

You have the option to download each exported model either through our [BlobConverter web
interface](https://blobconverter.luxonis.com/) or by utilizing the [BlobConverter API](https://github.com/luxonis/blobconverter).
Please note that downloading from the interface is only available from version `2022.1`. You can find additional information about
the conversion process [here](https://docs.luxonis.com/software/ai-inference/conversion.md).
