Read the Full Project Report Here
This project provides an end-to-end solution for re-identifying football players in video footage. It includes scripts for training a person re-identification (Re-ID) model and a complete pipeline to process a video, track players, and assign unique IDs to them throughout the match.
The entire project is set up to run seamlessly in Google Colab. just click on (open in colab)
- End-to-End Pipeline: From video input to an annotated output video with tracked players and their IDs.
- Re-ID Model Training: Includes code to train your own person re-identification model.
- Helper Utilities: Functions for drawing bounding boxes, and player IDs on video frames.
- Colab Ready: The main notebook
football_player_reidentification.ipynb
is configured to run on Google Colab with just one click. It handles all dependencies and data downloads.
- Click on the "Open In Colab" badge above.
- Follow the instructions within the
football_player_reidentification.ipynb
notebook. The notebook will guide you through installing dependencies, downloading the necessary data, and running the re-identification pipeline on a sample video.
football-player-reidentification/
├── Train/
│ └── reid_trainer.py # Contains helper functions for training the Re-ID model.
├── Utils/
│ └── utils.py # Contains helper functions for the main pipeline and for drawing bounding boxes/IDs.
├── football_player_reidentification.ipynb # The main Google Colab notebook.
└── README.md
The project uses custom-processed Re-ID data and other things. This data is hosted on Google Drive and will be downloaded automatically when you run the Colab notebook. Here is the gdrive link https://drive.google.com/drive/folders/15YpEAID-cWFgljI86hr4i1HeVMDS9zMf?usp=sharing
The data includes:
reid-model-training-data
: Manually cleaned and processed image data for training the person re-identification model.- A demo output video showing the result of the re-identification pipeline.
- Pretrained osnet fine tuned reid model weights