YOLOv8 Unity integrates cutting-edge and state-of-the-art Deep Learning models with the Unity engine using the Barracuda library. It contains examples of Object Detection and Instance Segmentation.
This project is the direct continuation of my previous project YOLO-UnityBarracuda.
YOLOv8 is designed to be fast, accurate, and easy to use, making it an excellent choice for a wide range of computer vision tasks.
This new version of YOLO achieves better accuracy and is even faster than its predecessors.

This project uses Unity 2022.3.
To run segmentation you need to obtain the onnx version of the segmentation model and indicate it in the script.
- Download the already converted model from PINTO model zoo or convert it by yourself using export command.
- Copy the segmentation model to Assets.
- Open Scenes/Segmentation.
- Select Main Camera.
- In the Segmentator component point your segmentation model in the Model File field.
- Run the scene.
To run object detection you need to obtain the onnx version of the detection model and indicate it in the script.
- Download the already converted model from PINTO model zoo or convert it by yourself using export command.
- Copy the detection model to Assets.
- Open Scenes/Detection.
- Select Main Camera.
- In the Detector component point your detection model in the Model File field.
- Run the scene.