Skip to content

Conversation

@connorgallopo
Copy link
Collaborator

@connorgallopo connorgallopo commented Aug 12, 2025

What is it?

This PR includes the training data, models, configs, and integration for a YOLO model based approach for ball detection.

What's Missing?

At this point the model was trained on a laughably small number of photos (less than 30), but still outperforms current detection. We need to collect ball images collected from the various PiTrac users to ensure that the model has the most robust image set for training as possible.

What's Next?

This PR is missing a lot of the tooling I used to actually create that data. These are still WIP and need to have very opinionated workflows that might just require another repository for some of the assets.

Annotator

The Annotator tool is one of the key components for training the data set. This tool looks at the /unprocessed_images directory for any images and then opens an interface to allow the user to go through each image, draw a circle around each ball, and then confirm. Then based on the naming structure we use for those images they are moved into appropriate folders in Software\GroundTruthAnnotator\yolo\images with their associated training data for yolo in Software\GroundTruthAnnotator\yolo\labels

Training Workflow

The training workflow is written in python and is what consumes the training images from above and converts them into the Yolo Model, and then the ONNX model which is what the PiTrac uses.

@connorgallopo connorgallopo marked this pull request as draft August 12, 2025 13:08
… Dev scripts improvements and documentation updates
Copy link
Collaborator

@jeshernandez jeshernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WIP, will review after.

@connorgallopo connorgallopo marked this pull request as ready for review August 20, 2025 22:27
@connorgallopo connorgallopo changed the title WIP: YOLO Ball Detection YOLO Ball Detection Aug 21, 2025
@jamespilgrim jamespilgrim merged commit 25f8764 into PiTracLM:main Aug 21, 2025
3 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants