Ultralytics YOLO27: Join the waitlist.
License YOLO
Ultralytics YOLO

Export and optimize Ultralytics YOLOv8 for inference on Intel OpenVINO

Export and optimize an Ultralytics YOLOv8 model with OpenVINO for up to 3x faster inference on Intel CPUs and GPUs, then benchmark it against PyTorch.

Nuvola LadiNuvola Ladi4 min read

Listen to this article

Exporting and optimizing Ultralytics YOLOv8 for inference on Intel OpenVINO

In this blog post, we'll be taking a look at how you can export and optimize your pre-trained or custom-trained Ultralytics YOLOv8 model for inference using OpenVINO. If you're using an Intel-based system, whether it’s a CPU or GPU, this guide will show you how to significantly speed up your model with minimal effort.

Why optimize Ultralytics YOLOv8 with OpenVINO?#

Optimizing your Ultralytics YOLOv8 model with OpenVINO can provide up to a 3x speed increase on inference tasks, particularly if you're running an Intel CPU. This performance boost can make a huge difference in real-time applications, from object detection to segmentation and security systems.

Steps to export and optimize your Ultralytics YOLOv8 model#

Understanding the process#

First things first, let’s break down the process. We're going to convert a PyTorch model to the OpenVINO format and optimize it. At the time of the video, this conversion went through ONNX as an intermediate step; current Ultralytics versions convert directly from PyTorch. This process involves a few straightforward steps and can be applied to various models and formats including TensorFlow, PyTorch, and ONNX.

Exporting the model#

Jumping into the Ultralytics documentation, we find that exporting a YOLOv8 model involves using the export method from the Ultralytics framework. This method converts our model from PyTorch and optimizes it for OpenVINO. The result is a model that runs significantly faster on Intel hardware.

Installing dependencies#

Before running the export script, you’ll need to ensure that all necessary dependencies are installed. These include the Ultralytics library and OpenVINO. Installing these packages is a simple process that can be done via pip, the Python package installer.

Running the export script#

Once your environment is set up, you can run your export script. This script will convert your PyTorch model to OpenVINO. The process is straightforward and involves calling a single function to handle the export. The Ultralytics framework makes it easy to convert and optimize your models, ensuring you get the best performance with minimal hassle.

Nicolai Nielsen outlining how to run the model export script

Fig 1. Nicolai Nielsen outlining how to run the export script.

Comparing performance#

After exporting, it’s essential to compare the performance of the original and optimized models. By benchmarking the inference time of both models, you can clearly see the performance gains. Typically, the OpenVINO model will show a significant reduction in inference time compared to the original PyTorch model. This is especially true for larger models where the performance boost is most noticeable.

Real-world application and benefits#

Optimizing Ultralytics YOLOv8 models with OpenVINO is particularly beneficial for applications requiring real-time processing. Here are a few examples:

  • Security systems: Real-time object detection can alert security personnel instantly, enhancing safety and responsiveness.
  • Automated vehicles: Faster inference speeds improve the responsiveness of autonomous driving systems, making them safer and more reliable.
  • Healthcare: Quick image processing for diagnostic tools can save lives by providing faster results, allowing for timely interventions.

By implementing these optimizations, you not only improve performance but also enhance the reliability and efficiency of your applications. This can lead to better user experiences, increased productivity, and more innovative solutions.

Wrapping up#

Exporting and optimizing an Ultralytics YOLOv8 model for OpenVINO is an effective way to use Intel hardware for faster and more efficient AI applications. With just a few simple steps, you can significantly improve your model’s performance and apply it to real-world scenarios effectively.

Make sure to check out more tutorials and guides from Ultralytics, such as the OpenVINO on CPU lesson in Ultralytics Academy, to keep enhancing your AI projects. Visit our GitHub repository and join the Ultralytics community for more insights and updates.

Remember, optimizing your models is not just about speed—it's about unlocking new possibilities and ensuring your AI solutions are robust, efficient, and ready for the future.

Written by

Nuvola Ladi
Nuvola Ladi

Digital Content Manager · Ultralytics

Nuvola Ladi is a Digital Content Manager at Ultralytics, where she creates content covering vision AI and Ultralytics YOLO and represents the company at industry events such as the PyTorch Conference 2025. Based in Spain, she holds a Master's degree in Visual and Digital Media from IE University. Before joining Ultralytics, she held roles at organizations including XVA Gallery & Hotel and Rolex.

Comments

Ask a question, share your results, or help someone else.

Explore solutions

Computer vision in sports

Computer vision in sports

Discover how Ultralytics YOLO powers sports vision with player and ball tracking, performance analytics, coaching insights, and athlete rehabilitation.
Learn more
Computer vision for aerial imagery

Computer vision for aerial imagery

Turn drone and aerial imagery into real-time insights for agriculture, aquaculture, conservation, and geospatial analysis with Ultralytics YOLO.
Learn more
Computer vision in aerospace

Computer vision in aerospace

Apply computer vision in aerospace with Ultralytics YOLO for aircraft inspection, runway FOD detection, airport ground operations, and composite defect detection.
Learn more
Computer vision in security

Computer vision in security

Protect every site with Ultralytics YOLO models. Vision AI powers perimeter monitoring, threat detection, license-plate recognition, and workplace safety.
Learn more
Computer vision in robotics

Computer vision in robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Computer vision in logistics

Computer vision in logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Computer vision in retail

Computer vision in retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Computer vision in healthcare

Computer vision in healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Computer vision in manufacturing

Computer vision in manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Computer vision in automotive

Computer vision in automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Computer vision in agriculture

Computer vision in agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more

Let's build the future of AI together!

Begin your journey with the future of machine learning