Aller au contenu
ModelPrésentéExterne
Télécharger

Football Player Detection Yolo8

This repository contains a YOLO object detection model fine-tuned for football (soccer) match analysis. The model localizes football players in broadcast or tactical camera angles.

TypeOtherVersionRevision e01334dBClasse

Source du modèle

Type
Other
Taille du fichier
5,97 MB
Version
vRevision e01334d
Mis à jour
10 oct. 2026
Téléchargements
29
Source
Hugging Face

Description de la source

Football Player Detection (YOLO)

Ultralytics YOLO PyTorch License: MIT

1. Overview

This repository contains a YOLO object detection model fine-tuned for football (soccer) match analysis. The model localizes football players in broadcast or tactical camera angles.

2. Model Details

  • Architecture: YOLOv8 Nano (yolov8n.pt)
  • Task: Object Detection
  • Framework: PyTorch / Ultralytics
  • Input Resolution: 640x640
  • Epochs Trained: 100

3. Dataset

  • Format: YOLO txt annotations
  • Image Resolution: Resized to 640 pixels on the longest edge during training.
  • Augmentations: Mosaic (1.0), left-right flips (0.5), scaling (0.5), translation (0.1).

4. Training Configuration

Key hyperparameters extracted from args.yaml:

  • Epochs: 100
  • Batch Size: 16
  • Image Size: 640
  • Optimizer: Auto
  • Initial Learning Rate (lr0): 0.01
  • Final Learning Rate Fraction (lrf): 0.01
  • Momentum: 0.937
  • Weight Decay: 0.0005
  • NMS IoU Threshold: 0.7

5. Performance

Evaluation metrics at epoch 100:

  • Precision: 0.799
  • Recall: 0.752
  • mAP50: 0.711
  • mAP50-95: 0.443

6. Training Visualizations

Training Results
Training progression showing box, class, and DFL losses alongside precision, recall, and mAP metrics over 100 epochs.

Normalized Confusion Matrix
Normalized confusion matrix evaluating true positive predictions and background false negatives.

Precision-Recall Curve
Precision-Recall (PR) curve demonstrating the trade-off between precision and recall across confidence thresholds.

F1 Curve
F1-score curve illustrating optimal confidence thresholds.

7. Installation

pip install ultralytics torch torchvision

8. Usage

Python API

from ultralytics import YOLO

model = YOLO("weights/best.pt")
results = model("football.jpg")
results[0].show()

CLI

yolo task=detect mode=predict model=weights/best.pt source=football.jpg

9. Repository Structure

.
├── weights/
│   ├── best.pt
│   └── last.pt
├── args.yaml
├── results.csv
├── results.png
├── confusion_matrix.png
├── confusion_matrix_normalized.png
├── BoxPR_curve.png
├── BoxP_curve.png
├── BoxR_curve.png
├── BoxF1_curve.png
├── labels.jpg
├── val_batch0_pred.jpg
├── val_batch1_pred.jpg
└── val_batch2_pred.jpg

Sources

1 source
Hugging FacePrincipalVersion e01334da00a67cea01a1fb9d28d902433bf40926
huggingface.co/ouss100/football-player-detection-yolo8/tree/e01334da00a67cea01a1fb9d28d902433bf40926

Vérifié 10 oct.

Artefacts du modèle

1 artefact

best.pt

pt · 5,97 MB · SHA-256 f03a85115bc0…c1a2 · Hugging Face

Télécharger

Extraits de sources

3 extraits

--- language: - en license: mit pipeline_tag: object-detection library_name: ultralytics tags: - yolo11 - football - object-detection - pytorch - ultralytics metrics: - precision - recall - map50 - map50-95 --- # Football Player Detection (YOLO) [![Ultralytics YOLO](https://img.shields.io/badge/Ultralytics-YOLO-blue?logo=ultralytics)](https://github.com/ultralytics/ultralytics) [![PyTorch](https://img.shields.io/badge/PyTorch-%23EE4C2C.svg?logo=PyTorch&logoColor=white)](https://pytorch.org/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) ## 1. Overview This repository contains a YOLO object detection model fine-tuned for football (soccer) match analysis. The model localizes football players in broadcast or tactical camera angles. ## 2. Model Details - **Architecture:** YOLOv8 Nano (`yolov8n.pt`) - **Task:** Object Detection - **Framework:** PyTorch / Ultralytics - **Input Resolution:** 640x640 - **Epochs Trained:** 100 ## 3. Dataset - **Format:** YOLO txt annotations - **Image Resolution:** Resized to 640 pixels on the longest edge during training. - **Augmentations:** Mosaic (`1.0`), left-right flips (`0.5`), scaling (`0.5`), translation (`0.1`). ## 4. Training Configuration Key hyperparameters extracted from `args.yaml`: - **Epochs:** 100 - **Batch Size:** 16 - **Image Size:** 640 - **Optimizer:** Auto - **Initial Learning Rate (`lr0`):** 0.01 - **Final Learning Rate Fraction (`lrf`):** 0.01 - **Momentum:** 0.937 - **Weight Decay:** 0.0005 - **NMS IoU Threshold:** 0.7 ## 5. Performance Evaluation metrics at epoch 100: - **Precision:** 0.799 - **Recall:** 0.752 - **mAP50:** 0.711 - **mAP50-95:** 0.443 ## 6. Training Visualizations ![Training Results](results.png) *Training progression showing box, class, and DFL losses alongside precision, recall, and mAP metrics over 100 epochs.* ![Normalized Confusion Matrix](confusion_matrix_normalized.png) *Normalized confusion matrix evaluating true positive predictions and background false negatives.* ![Precision-Recall Curve](BoxPR_curve.png) *Precision-Recall (PR) curve demonstrating the trade-off between precision and recall across confidence thresholds.* ![F1 Curve](BoxF1_curve.png) *F1-score curve illustrating optimal confidence thresholds.* ## 7. Installation ```bash pip install ultralytics torch torchvision ``` ## 8. Usage ### Python...

Source context: 29 downloads · 1 likes · Pipeline object-detection · Library ultralytics · Repo ouss100/football-player-detection-yolo8

Source context: 121 downloads · 0 likes · Pipeline object-detection · Library ultralytics · Repo ouss100/football-player-detection-yolo8