cli: add download command for benchmark datasets
Description
Add a trackers download CLI subcommand that lets users download benchmark datasets from a GCP bucket. Supports downloading full datasets or individual splits, with or without video frames. Datasets: MOT17, SportsMOT, SoccerNet Tracking, DenseTrack.
Proposed CLI interface
# List what's available
trackers download --list
# Download full dataset
trackers download mot17
# Download specific split, annotations only
trackers download mot17 --split train --annotations-only
# Custom output path
trackers download sportsmot --split val -o ./datasets
Tasks
- [ ] Research and document the structure of each dataset (MOT17, SportsMOT, SoccerNet Tracking, DenseTrack): available splits, contents per split (frames, GT annotations, detections), directory layout.
- [ ] Prepare zip files for each dataset/split/variant combination and upload them to a GCP bucket.
- [ ] Create a dataset manifest (mapping dataset + split + variant to GCP URLs and metadata) inside the codebase.
- [ ] Register the
downloadsubcommand intrackers/scripts/__main__.py. - [ ] Implement the
--listflag to display available datasets, splits, and content types in a formatted table. - [ ] Implement download logic: resolve URL from manifest, download zip with progress bar, extract to output directory.
- [ ] Handle edge cases: existing files (skip/overwrite), network errors, interrupted downloads.
- [ ] Test the command end-to-end for each dataset and variant.
hey @SkalskiP , I'd like to work on this. i'll get started by looking into the datasets and documenting the structure & splits.
I think the above mentioned PR is by an AI bot
Yeah, I closed the PR above because it was auto-generated and did not meet the basic requirements for this task.
The first step is to plan which .zip files we will need for each dataset task. I’d prefer you work on one task at a time. You are already quite far along with #244. How about we finish #244 first, and if #246 is still open afterward, you can pick that up as well?
| Dataset | Frames Train | Frames Test | Frames Valid | GT Train | GT Test | GT Valid | Detections Train | Detections Test | Detections Valid |
|---|---|---|---|---|---|---|---|---|---|
| MOT17 | Yes | Yes | No★ | Yes | No | No★ | Yes | Yes | No★ |
| SportsMOT | Yes | Yes | Yes | Yes | No | Yes | No | No | No |
| SoccerNet Tracking | Yes | Yes | No | Yes | Yes | No | Yes | Yes | No |
| DenseTrack | Yes | Yes | Yes | Yes | No | Yes | No | No | No |
★ MOT17 has no official validation split. Validation is typically created from the train split.
@tstanczyk95 is this correct summary of all 4 datasets?
Dataset Frames Train Frames Test Frames Valid GT Train GT Test GT Valid Detections Train Detections Test Detections Valid MOT17 Yes Yes No★ Yes No No★ Yes Yes No★ SportsMOT Yes Yes Yes Yes No Yes No No No SoccerNet Tracking Yes Yes No Yes Yes No Yes Yes No DenseTrack Yes Yes Yes Yes No Yes No No No ★ MOT17 has no official validation split. Validation is typically created from the train split.
@tstanczyk95 is this correct summary of all 4 datasets?
@SkalskiP A few remarks here:
- MOT17 provides public detections for the train set, but in practice these are not used today. Everyone goes for private detector (provided by themselves or by a source different than MOT17)
- SoccerNet tracking provides oracle detections and ground truths for train and test set.
- SoccerNet tracking, does not have a validation set. Only train set, test set, challenge 2022 set and challenge 2023 sets. However, evaluation on the challenges 2022 and 2023 is not commonly used for algorithm evaluation and it is currently disabled.
looks like i can take this up now @SkalskiP ?
Yes! You feel you know what to do?
Hi @SkalskiP, I’ve reviewed the datasets and I think I can take this up.
Yes! You feel you know what to do?
Yes, thanks for the help!
@SkalskiP @tstanczyk95 I was able to find and download MOT17, SportsMOT, and SoccerNet Tracking, but I’m unable to find any official release or download link for DenseTrack, so I feel like I’m missing something. I did come across the paper “DenseTrack: Drone-based Crowd Tracking via Density-aware Motion-appearance Synergy” (arXiv:2407.17272), but it uses the DroneCrowd dataset and benchmarks on multiple other datasets, which seems to be something else. Could you please clarify which dataset is referred to as DenseTrack here and point me to the correct source if available? Thanks.
Datasets reviewed :
- [x] MOT17 : official MOTChallenge release
- [x] SportsMOT: official OneDrive release
- [x] SoccerNet Tracking : official sn-tracking repository / pip package download available
- [ ] ~~DenseTrack : source unclear, request for clarification.~~ [ clarification : DanceTrack ]
- [x] DanceTrack : official release on hugging face
Hi @omkar-334 and @JVSCHANDRADITHYA, that was a typo. I meant DanceTrack, not DenseTrack. I’m sorry for the confusion.
@JVSCHANDRADITHYA could you please describe the steps required to download the dataset and share the links to the original releases?
@SkalskiP Thanks for the clarification — got it, DanceTrack.
-
MOT17: Official MOTChallenge release https://motchallenge.net/data/MOT17/ Download via OneDrive → extract train/test sequences (frames, GT for train, detections for both).
-
SportsMOT: Official OneDrive release https://onedrive.live.com/?redeem=aHR0cHM6Ly8xZHJ2Lm1zL3UvcyFBdGplTHE3WW5ZR1JnUVBtdUFrd1dobmRPYzQxP2U9SXRKYWFh&cid=91819DD8AE2EDED8&id=91819DD8AE2EDED8%21131&parId=91819DD8AE2EDED8%21130&o=OneUp
-
SoccerNet Tracking: Official pip / GitHub release https://github.com/SoccerNet/sn-tracking Installed via pip install sn-tracking, which downloads and prepares the dataset programmatically.
I’ll have MOT17 and SoccerNet Tracking fully documented and initial implentations (structure, splits, ZIP plan) by EOD. SoccerNet is straightforward since it’s a pip-based workflow.
One Quick clarification: for SoccerNet Tracking, is it acceptable to invoke the official pip-based download process from the CLI instead of mirroring it in a GCP bucket?
One Quick clarification: for SoccerNet Tracking, is it acceptable to invoke the official pip-based download process from the CLI instead of mirroring it in a GCP bucket?
All data needs to be on our bucket. First of all because we need to slice the original data according to our needs. Second of all because that allows us to design everything to be efficient.
This is the proposed zip layout for MOT17. We bake in a validation split by temporally splitting each official train sequence at 50%: first half becomes train, second half becomes val. Frame numbers are not renumbered and track IDs are not modified. Images are identical across the three public detector variants (DPM, FRCNN, SDP), so frame and GT zips use only the -FRCNN folder convention; detection zips include all three variants. Once we confirm this structure, the same pattern will apply to SportsMOT, SoccerNet Tracking, and DanceTrack.
Proposed Zip Inventory
| Zip File Name | Frames Train | Frames Test | Frames Val | GT Train | GT Test | GT Val | Det. Train | Det. Test | Det. Val | Purpose / Notes |
|---|---|---|---|---|---|---|---|---|---|---|
mot17-train-frames.zip |
✅ | First 50% of frames per official train sequence + seqinfo.ini |
||||||||
mot17-train-annotations.zip |
✅ | gt.txt rows for first 50% of frames per sequence |
||||||||
mot17-val-frames.zip |
✅ | Last 50% of frames per official train sequence + seqinfo.ini |
||||||||
mot17-val-annotations.zip |
✅ | gt.txt rows for last 50% of frames per sequence |
||||||||
mot17-test-frames.zip |
✅ | All frames from official test sequences + seqinfo.ini |
||||||||
mot17-train-public-detections.zip |
✅ | DPM, FRCNN, SDP det.txt rows for first 50% of frames per sequence |
||||||||
mot17-val-public-detections.zip |
✅ | DPM, FRCNN, SDP det.txt rows for last 50% of frames per sequence |
||||||||
mot17-test-public-detections.zip |
✅ | DPM, FRCNN, SDP det.txt for test sequences |
Directory Structures
mot17-train-frames.zip first 50% of frames per official train sequence
mot17/
└── train/
├── MOT17-02-FRCNN/
│ ├── img1/
│ │ ├── 000001.jpg
│ │ ├── 000002.jpg
│ │ └── ...
│ └── seqinfo.ini
├── MOT17-04-FRCNN/
│ ├── img1/
│ │ └── ...
│ └── seqinfo.ini
├── MOT17-05-FRCNN/
│ └── ...
├── MOT17-09-FRCNN/
│ └── ...
├── MOT17-10-FRCNN/
│ └── ...
├── MOT17-11-FRCNN/
│ └── ...
└── MOT17-13-FRCNN/
└── ...
mot17-train-annotations.zip GT for first 50% of frames
mot17/
└── train/
├── MOT17-02-FRCNN/
│ └── gt/
│ └── gt.txt
├── MOT17-04-FRCNN/
│ └── gt/
│ └── gt.txt
├── MOT17-05-FRCNN/
│ └── ...
├── MOT17-09-FRCNN/
│ └── ...
├── MOT17-10-FRCNN/
│ └── ...
├── MOT17-11-FRCNN/
│ └── ...
└── MOT17-13-FRCNN/
└── ...
mot17-val-frames.zip last 50% of frames per official train sequence
mot17/
└── val/
├── MOT17-02-FRCNN/
│ ├── img1/
│ │ ├── 000301.jpg
│ │ ├── 000302.jpg
│ │ └── ...
│ └── seqinfo.ini
├── MOT17-04-FRCNN/
│ ├── img1/
│ │ └── ...
│ └── seqinfo.ini
├── MOT17-05-FRCNN/
│ └── ...
├── MOT17-09-FRCNN/
│ └── ...
├── MOT17-10-FRCNN/
│ └── ...
├── MOT17-11-FRCNN/
│ └── ...
└── MOT17-13-FRCNN/
└── ...
mot17-val-annotations.zip GT for last 50% of frames
mot17/
└── val/
├── MOT17-02-FRCNN/
│ └── gt/
│ └── gt.txt
├── MOT17-04-FRCNN/
│ └── gt/
│ └── gt.txt
├── MOT17-05-FRCNN/
│ └── ...
├── MOT17-09-FRCNN/
│ └── ...
├── MOT17-10-FRCNN/
│ └── ...
├── MOT17-11-FRCNN/
│ └── ...
└── MOT17-13-FRCNN/
└── ...
mot17-test-frames.zip all frames from official test sequences
mot17/
└── test/
├── MOT17-01-FRCNN/
│ ├── img1/
│ │ ├── 000001.jpg
│ │ └── ...
│ └── seqinfo.ini
├── MOT17-03-FRCNN/
│ └── ...
├── MOT17-06-FRCNN/
│ └── ...
├── MOT17-07-FRCNN/
│ └── ...
├── MOT17-08-FRCNN/
│ └── ...
├── MOT17-12-FRCNN/
│ └── ...
└── MOT17-14-FRCNN/
└── ...
mot17-train-public-detections.zip DPM, FRCNN, SDP for train split (first 50%)
mot17/
└── train/
├── MOT17-02-DPM/
│ └── det/
│ └── det.txt
├── MOT17-02-FRCNN/
│ └── det/
│ └── det.txt
├── MOT17-02-SDP/
│ └── det/
│ └── det.txt
├── MOT17-04-DPM/
│ └── det/
│ └── det.txt
├── MOT17-04-FRCNN/
│ └── det/
│ └── det.txt
├── MOT17-04-SDP/
│ └── det/
│ └── det.txt
└── ...
mot17-val-public-detections.zip DPM, FRCNN, SDP for val split (last 50%)
mot17/
└── val/
├── MOT17-02-DPM/
│ └── det/
│ └── det.txt
├── MOT17-02-FRCNN/
│ └── det/
│ └── det.txt
├── MOT17-02-SDP/
│ └── det/
│ └── det.txt
├── MOT17-04-DPM/
│ └── det/
│ └── det.txt
├── MOT17-04-FRCNN/
│ └── det/
│ └── det.txt
├── MOT17-04-SDP/
│ └── det/
│ └── det.txt
└── ...
mot17-test-public-detections.zip DPM, FRCNN, SDP for test
mot17/
└── test/
├── MOT17-01-DPM/
│ └── det/
│ └── det.txt
├── MOT17-01-FRCNN/
│ └── det/
│ └── det.txt
├── MOT17-01-SDP/
│ └── det/
│ └── det.txt
└── ...
I uploaded v1 of MOT17 files to the bucket.
- https://storage.googleapis.com/com-roboflow-marketing/trackers/datasets/mot17-v1/mot17-test-frames.zip
- https://storage.googleapis.com/com-roboflow-marketing/trackers/datasets/mot17-v1/mot17-test-public-detections.zip
- https://storage.googleapis.com/com-roboflow-marketing/trackers/datasets/mot17-v1/mot17-train-annotations.zip
- https://storage.googleapis.com/com-roboflow-marketing/trackers/datasets/mot17-v1/mot17-train-frames.zip
- https://storage.googleapis.com/com-roboflow-marketing/trackers/datasets/mot17-v1/mot17-train-public-detections.zip
- https://storage.googleapis.com/com-roboflow-marketing/trackers/datasets/mot17-v1/mot17-val-annotations.zip
- https://storage.googleapis.com/com-roboflow-marketing/trackers/datasets/mot17-v1/mot17-val-frames.zip
- https://storage.googleapis.com/com-roboflow-marketing/trackers/datasets/mot17-v1/mot17-val-public-detections.zip
@SkalskiP Is this structure fine?
DATASETS = {
"mot17": {
"version": "v1",
"splits": {
"train": {
"frames": "https://storage.googleapis.com/com-roboflow-marketing/trackers/datasets/mot17-v1/mot17-train-frames.zip",
"annotations": "https://storage.googleapis.com/com-roboflow-marketing/trackers/datasets/mot17-v1/mot17-train-annotations.zip",
"detections": "https://storage.googleapis.com/com-roboflow-marketing/trackers/datasets/mot17-v1/mot17-train-public-detections.zip",
},
"val": {
"frames": "https://storage.googleapis.com/com-roboflow-marketing/trackers/datasets/mot17-v1/mot17-val-frames.zip",
"annotations": "https://storage.googleapis.com/com-roboflow-marketing/trackers/datasets/mot17-v1/mot17-val-annotations.zip",
"detections": "https://storage.googleapis.com/com-roboflow-marketing/trackers/datasets/mot17-v1/mot17-val-public-detections.zip",
},
"test": {
"frames": "https://storage.googleapis.com/com-roboflow-marketing/trackers/datasets/mot17-v1/mot17-test-frames.zip",
"detections": "https://storage.googleapis.com/com-roboflow-marketing/trackers/datasets/mot17-v1/mot17-test-public-detections.zip",
},
},
}
}
preview of the CLI Download tool
@SkalskiP
The 4th dataset, DanceTrack. The official release is available here: https://huggingface.co/datasets/noahcao/dancetrack
DanceTrack provides train / val / test splits natively and follows a MOT-style directory structure (image sequences with GT annotations for train/val, no GT for test) [ For ref : check this ]
The structure aligns well with the MOT17 layout you proposed, so the same ZIP-splitting strategy (frames / annotations / detections where applicable) should apply cleanly.
I’ll proceed with documenting the exact structure and mapping it to the same manifest + bucket layout
Hi @JVSCHANDRADITHYA 👋🏻 I was thinking about the API for this command today, and decided to redesign it.
# Full dataset (all splits, all content)
trackers download mot17
# Single split, all content (annotations + frames + detections)
trackers download mot17 --split train
trackers download mot17 --split train --content annotations,frames,detections # same thing, explicit
# Single split, selective content
trackers download mot17 --split train --content annotations
trackers download mot17 --split train --content annotations,frames
# Multiple splits
trackers download mot17 --split train,val --content annotations
# Test split (no annotations available, so only frames + detections)
trackers download mot17 --split test
trackers download mot17 --split test --content annotations # error: "annotations not available for
# Output directory
trackers download mot17 --split train --content annotations -o ./datasets
Sure @SkalskiP .. will change cmd line options accordingly