0

PyTorch to OpenVINO™ IR Tutorial

This tutorial demonstrates how to convert PyTorch models to OpenVINO Intermediate Representation (IR) format.

Example · مثال

Content

PyTorch to OpenVINO™ IR Tutorial

This tutorial demonstrates how to convert PyTorch models to OpenVINO Intermediate Representation (IR) format.

Notebook Contents

The notebook shows how to convert the Pytorch model in formats torch.nn.Module and torch.jit.ScriptModule into OpenVINO Intermediate Representation. The tutorial uses RegNetY_800MF model from torchvision pre-trained on ImageNet dataset to demonstrate how to convert PyTorch models to OpenVINO Intermediate Representation using Model Converter. It also shows how to do classification inference on an image, using OpenVINO Runtime and compares the results of the PyTorch model with the OpenVINO IR model.

!classification_result

Installation Instructions

This is a self-contained example that relies solely on its own code.</br> We recommend running the notebook in a virtual environment. You only need a Jupyter server to start. For details, please refer to [Installation Guide](../../README.md).

Source and license

Source
Intel OpenVINO Notebooks
Original
openvinotoolkit/openvino_notebooks/notebooks/pytorch-to-openvino
License
Apache-2.0