EDIT - I’m going to put my process at the bottom ofthis post.
Starting a new thread for this.
Using google ai, I’ve managed to run some YOLO models training on datasets from Roboflow, and convert them to onnx files.
The issue comes with then using them in the video stitcher, likely due to classes etc not aligning or similar. How can I take a yolo model I’ve trained to track a rugby ball, and successfully use it in the software?
How I made a model (couple of options).
Firstly a disclaimer. I’m comfortable with computers, but I am not a programmer, I’ve tinkered here and there, but absolute minimum basics. 95% of what I did ,was done asking Google AI for instructions. Using Googles AI results, as well as Roboflow, I’ve managed to build a few models now. I have no doubt someone with actual knowledge could do much better/quicker etc.
First thing is the dataset. You need images that have your target boxed up (annotated). Using the roboflow universe I found a few that fit my needs ( https://universe.roboflow.com/ ).
I’m using YOLO26 since it’s apparently the most advanced one yet. I’ve also just switched to using the Small version rather than the Nano, since the small has a lot more detection layers. It takes longer to use, but gives better results.
I logged in, created a project, and started adding datasets to my asset library. Then I trimmed the dataset to only contain information I needed (so only those with balls boxed, not those with players/refs etc also boxed). I then saved this to my new project. I then modified it’s class names, so instead of ball, rugbyball, rugby ball etc, they all were ball.
Roboflow then literally has models that you can train on their website. You get so many free credits per month from what I can tell. I used Google AI to suggest what settings I needed to get the best results. As I was trying to detect a rugby ball, that included making the image size larger than normal, and not using something called “mosaic”, I suggest anyone doing ball training does the same. Unfortunately I used a Nano model instead of a Small one, so it didn’t work that well, and now I don’t have enough credits until next month I suspect! Using roboflow is completely set and forget for training which is nice. No programming skills required.
Next option is Google Colab. Using gemini, I got the instructions for how to run a Yolo26 training on this. Make sure you select the runtime type of T4 GPU before you do anything else at all. Google’s AI doesn’t always give you the instructions in the correct order, so read through first.
The AI literally gave me the programming code I needed to paste into Google Colab to get it all going. The only bit that came from elsewhere, is the dataset info from roboflow, and they gave me the code I needed anyway.
In google colab, you do need to keep the tab open and need to visit it fairly frequently preventing it shutting down. You should get 4 hours free no issue, and then upto 12 hours, but apparently you can shutdown, so try and keep things within the 4 hours for training. I found 50 epochs (number of times it goes over the images) to be a good number at the speed it was going.
TLDR: Use Googles AI to instruct you in how to train a YOLO model.