Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- README.md +126 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000067.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000084.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000085.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000086.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000087.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000088.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000089.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000090.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000091.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000092.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000093.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000094.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000095.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000096.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000097.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000098.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000099.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000100.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000101.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000102.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000103.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000104.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000105.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000106.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000107.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000108.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000109.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000110.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000111.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000112.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000113.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000114.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000115.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000116.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000117.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000118.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000119.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000120.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000121.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000122.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000123.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000124.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000125.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000126.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000127.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000128.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000129.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000130.jpg +3 -0
- data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000131.jpg +3 -0
README.md
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
version: 1.0.0
|
| 3 |
+
license: other
|
| 4 |
+
license_name: proprietary
|
| 5 |
+
task_categories:
|
| 6 |
+
- object-detection
|
| 7 |
+
- video-classification
|
| 8 |
+
tags:
|
| 9 |
+
- sports
|
| 10 |
+
- soccer
|
| 11 |
+
- football
|
| 12 |
+
- ball-tracking
|
| 13 |
+
- tiny-object-detection
|
| 14 |
+
annotations_creators:
|
| 15 |
+
- human-verified
|
| 16 |
+
- machine-generated
|
| 17 |
+
pretty_name: Soccer Ball Tracking Dataset
|
| 18 |
+
size_categories:
|
| 19 |
+
- 1K<n<10K
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# Soccer Ball Tracking Dataset
|
| 23 |
+
|
| 24 |
+
A curated dataset for detecting and tracking soccer balls in broadcast footage, specifically designed for **tiny object detection** challenges. This dataset supports the development of models robust to motion blur, long-shot scales, and occlusions.
|
| 25 |
+
|
| 26 |
+
## Dataset Description
|
| 27 |
+
|
| 28 |
+
This dataset consists of **7,152 frames** extracted from **54 video clips** of professional soccer broadcasts. The data is split into two categories based on ball visibility:
|
| 29 |
+
|
| 30 |
+
- **Visible**: Frames where the ball is clearly visible and annotated with a bounding box.
|
| 31 |
+
- **Not Visible**: Frames where the ball is occluded, out of frame, or otherwise not visible (negative samples).
|
| 32 |
+
|
| 33 |
+
The dataset is designed to train models that can distinguish between the ball and ball-like objects (player heads, socks, logos) in low-resolution (SD/480p) scenarios.
|
| 34 |
+
|
| 35 |
+
### Statistics
|
| 36 |
+
|
| 37 |
+
| Category | Samples | Description |
|
| 38 |
+
|----------|---------|-------------|
|
| 39 |
+
| **Visible** | 4,307 | Frames with at least one ball bounding box |
|
| 40 |
+
| **Not Visible** | 2,845 | Frames with no visible ball (hard negatives) |
|
| 41 |
+
| **Total** | **7,152** | Total frames from 54 clips |
|
| 42 |
+
|
| 43 |
+
### Source Data
|
| 44 |
+
|
| 45 |
+
- **Domain**: Professional Soccer Broadcasts
|
| 46 |
+
- **Resolution**: Varied (processed at 640px for training)
|
| 47 |
+
- **Annotation Style**: YOLO format (normalized xywh)
|
| 48 |
+
- **Labeling Method**: Active Learning Loop (Model Mining -> Pseudo-labeling -> Manual Verification)
|
| 49 |
+
- **Anonymization**: Source video names have been replaced with UUIDs.
|
| 50 |
+
|
| 51 |
+
## Dataset Structure
|
| 52 |
+
|
| 53 |
+
The dataset is organized into two main folders based on visibility, with a metadata file providing detailed indexing.
|
| 54 |
+
|
| 55 |
+
```
|
| 56 |
+
infactory-ai/ball-tracking/
|
| 57 |
+
├── README.md # Dataset card
|
| 58 |
+
├── metadata.csv # Index with all metadata
|
| 59 |
+
├── dataset_info.json # Dataset statistics
|
| 60 |
+
└── data/
|
| 61 |
+
├── visible/ # Frames with ball visible
|
| 62 |
+
│ ├── {uuid}_{frame}.jpg
|
| 63 |
+
│ └── {uuid}_{frame}.txt # YOLO label
|
| 64 |
+
└── not_visible/ # Frames with no ball
|
| 65 |
+
└── {uuid}_{frame}.jpg
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
### Metadata Fields (`metadata.csv`)
|
| 69 |
+
|
| 70 |
+
| Field | Type | Description |
|
| 71 |
+
|-------|------|-------------|
|
| 72 |
+
| `file_path` | string | Relative path to the image file |
|
| 73 |
+
| `video_source` | string | UUID of the source video clip |
|
| 74 |
+
| `frame_index` | int | Frame number in the original clip |
|
| 75 |
+
| `visibility` | string | `visible` or `not_visible` |
|
| 76 |
+
| `bboxes_count` | int | Number of bounding boxes in the frame |
|
| 77 |
+
|
| 78 |
+
## Model Architecture & Methodology
|
| 79 |
+
|
| 80 |
+
This dataset was created to support a specific modeling approach:
|
| 81 |
+
|
| 82 |
+
1. **Architecture**: **YOLOv8-P2 (Custom)**
|
| 83 |
+
* Based on Ultralytics YOLOv8 Nano.
|
| 84 |
+
* **Custom P2 Head**: Added a stride-4 detection head to preserve high-resolution features for tiny objects.
|
| 85 |
+
* **Input Resolution**: 640px (simulating 480p SD quality) for speed (>60fps) and robustness.
|
| 86 |
+
|
| 87 |
+
2. **Active Learning**:
|
| 88 |
+
* Clips were mined from raw footage using a high-recall model.
|
| 89 |
+
* "Hard negatives" (empty clips that looked like they had balls) were specifically targeted to reduce false positives.
|
| 90 |
+
|
| 91 |
+
## Usage
|
| 92 |
+
|
| 93 |
+
### Loading with Hugging Face Datasets
|
| 94 |
+
|
| 95 |
+
```python
|
| 96 |
+
from datasets import load_dataset
|
| 97 |
+
|
| 98 |
+
dataset = load_dataset("infactory-ai/ball-tracking", data_dir="data")
|
| 99 |
+
|
| 100 |
+
# Filter for visible frames
|
| 101 |
+
visible_frames = dataset.filter(lambda x: x["visibility"] == "visible")
|
| 102 |
+
```
|
| 103 |
+
|
| 104 |
+
### Parsing Labels
|
| 105 |
+
|
| 106 |
+
Labels are in standard YOLO format:
|
| 107 |
+
`<class_id> <x_center> <y_center> <width> <height>`
|
| 108 |
+
|
| 109 |
+
* `class_id`: 0 (ball)
|
| 110 |
+
* Coordinates are normalized to [0, 1].
|
| 111 |
+
|
| 112 |
+
## License
|
| 113 |
+
|
| 114 |
+
Proprietary. Usage restricted to Infactory R&D and authorized partners.
|
| 115 |
+
|
| 116 |
+
## Citation
|
| 117 |
+
|
| 118 |
+
```bibtex
|
| 119 |
+
@dataset{ball_tracking_2026,
|
| 120 |
+
title={Soccer Ball Tracking Dataset},
|
| 121 |
+
author={Valentino Constantinou, Infactory AI Team},
|
| 122 |
+
year={2026},
|
| 123 |
+
publisher={Infactory},
|
| 124 |
+
url={https://huggingface.co/datasets/infactory-ai/ball-tracking}
|
| 125 |
+
}
|
| 126 |
+
```
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000067.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000084.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000085.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000086.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000087.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000088.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000089.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000090.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000091.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000092.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000093.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000094.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000095.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000096.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000097.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000098.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000099.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000100.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000101.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000102.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000103.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000104.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000105.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000106.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000107.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000108.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000109.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000110.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000111.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000112.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000113.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000114.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000115.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000116.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000117.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000118.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000119.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000120.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000121.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000122.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000123.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000124.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000125.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000126.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000127.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000128.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000129.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000130.jpg
ADDED
|
|
Git LFS Details
|
data/not_visible/00011c7b-8b89-481a-b3b2-a2ebd6588379_000131.jpg
ADDED
|
|
Git LFS Details
|