Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 1.84 KB

README.md

File metadata and controls

21 lines (14 loc) · 1.84 KB

Vietnamese

An application of Yolov5 and ByteTrack in football match analysis based on broadcast video

The objective of the project is to identify and track four objects: player, referee, goalkeeper and ball. Then, based on the inertial algorithm, I calculate the percentage of ball possession between the two teams in the match video.

Model training

All the training codes with YoloV5 are in the train.ipynb. It includes how to download the my dataset with about 2800 images and some arguments for the training progress.

My training progress was running on Google Colab Pro with high-ram (25GB) (If possible, I recommend using this high-ram configuration to help reduce bottelneck when loading data to the GPU). My training is continuous, so each full 300 epochs training would take 55 hours on Tesla T4 16GB and 27 hours on A100 40GB.

After fully training the Yolov5 model, the results should look like this:

Model inference and annotation results

All the inference code with Yolov5, ByteTrack combined with my algorithm using HSV color filter and inertial algorithm are in the main.ipynb. The detail of my algorithm is in the football folder in this repository.

Here is a short demo of the final result of this project:

final_demo.mp4