Skip to content

Latest commit

 

History

History
 
 

239-image-bind

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Binding multimodal data using ImageBind and OpenVINO

Exploring the surrounding world, people get information using multiple senses, for example, seeing a busy street and hearing the sounds of car engines. ImageBind introduces an approach that brings machines one step closer to humans’ ability to learn simultaneously, holistically, and directly from many different forms of information. ImageBind is the first AI model capable of binding data from six modalities at once, without the need for explicit supervision (the process of organizing and labeling raw data). By recognizing the relationships between these modalities — images and video, audio, text, depth, thermal, and inertial measurement units (IMU) — this breakthrough helps advance AI by enabling machines to better analyze many different forms of information, together.

ImageBind

In this tutorial, we consider how to convert and run ImageBind model using OpenVINO.

Notebook Contents

This folder contains two notebooks that show how to convert and quantize model with OpenVINO:

  1. Convert an ImageBind Model using OpenVINO
  2. Quantize an ImageBind Model using NNCF

The first notebook is about the conversion to IR and consists of following steps:

  1. Download the pre-trained model.
  2. Prepare input data examples.
  3. Convert the model to OpenVINO Intermediate Representation format (IR).
  4. Run model inference and analyze results.

The second notebook is about the optimization by 8-bit quantization and consists of the following steps:

  1. Quantize the converted OpenVINO model with the Post-training Quantization with API of NNCF.
  2. Compare results of the converted OpenVINO and the quantized models.
  3. Compare model size of the converted OpenVINO and the quantized models.
  4. Compare performance of the converted OpenVINO and the quantized models.

NNCF performs quantization within the OpenVINO IR. It is required to run the first notebook before running the second notebook.

We will use ImageBind model for zero-shot audio and image classification. The result of model work demonstrated on the image below

image

Installation Instructions

This is a self-contained example that relies solely on its own code.
We recommend running the notebook in a virtual environment. You only need a Jupyter server to start. For details, please refer to Installation Guide.