I discovered that YOLOv8 and YOLOv5 perform instance segmentation quite effectively in photos. However, I couldn’t find any resources explaining how to implement the YOLOv8 model specifically in Unity using Barracuda. To make the best use of the model in Unity, i am wondering whether should i choose YOLOv8 or YOLOv5. And any implementation tutorial.
Here’s my workflow:
- find model in the roboflow
- train at colab
- export to ONNX format
- adapt it into unity barracuda
the hardest point is the Barracuda keep throw me errors about the yolov8 model i converted. And here’s my script for convertion:
/////////////////////////////
from ultralytics import YOLO
Load a model
model = YOLO(“best.pt”) # load a pretrained model (recommended for training)
Use the model
path = model.export(format=“onnx”) # export the model to ONNX format
//////////////////////////////