Skip to content

Real3Lee/YOLOv8Unity

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YOLOv8 Unity

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

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. image

Usage

This project uses Unity 2022.3.

Instance Segmentation

To run segmentation you need to obtain the onnx version of the segmentation model and indicate it in the script.

  1. Download the already converted model from PINTO model zoo or convert it by yourself using export command.
  2. Copy the segmentation model to Assets.
  3. Open Scenes/Segmentation.
  4. Select Main Camera.
  5. In the Segmentator component point your segmentation model in the Model File field.
  6. Run the scene.

Object Detection

To run object detection you need to obtain the onnx version of the detection model and indicate it in the script.

  1. Download the already converted model from PINTO model zoo or convert it by yourself using export command.
  2. Copy the detection model to Assets.
  3. Open Scenes/Detection.
  4. Select Main Camera.
  5. In the Detector component point your detection model in the Model File field.
  6. Run the scene.

About

YOLOv8 for Unity - object detection and instance segmentation using Barracuda

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • ASP.NET 74.1%
  • C# 16.9%
  • HTML 9.0%