Skip to content

Commit c3969ed

Browse files
Update test_data Directory
1 parent c0ae03b commit c3969ed

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

test_data/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
## Tools Directory Usage
1+
## test_data Directory Usage
22

3-
The `tools` directory contains utility scripts to help you work with OSL (Open Sports Lab) datasets, particularly for downloading annotated datasets and associated videos from Hugging Face. Below you'll find an explanation and usage instructions.
3+
The `test_data` directory contains utility scripts to help you work with OSL (Open Sports Lab) datasets, particularly for downloading annotated datasets and associated videos from Hugging Face. Below you'll find an explanation and usage instructions.
44

55
---
66

77
### 1. Download OSL Dataset and Videos from Hugging Face
88

9-
**Script:** `tools/download_osl_hf.py`
9+
**Script:** `test_data/download_osl_hf.py`
1010

1111
This script automates the download of an OSL-format JSON file (annotation file) and all referenced videos from a Hugging Face dataset repository.
1212

@@ -55,7 +55,7 @@ If authentication is missing or access is not granted, the script will fail with
5555
**Basic Command:**
5656

5757
```bash
58-
python tools/download_osl_hf.py \
58+
python test_data/download_osl_hf.py \
5959
--url https://huggingface.co/datasets/<org>/<dataset>/blob/<revision>/<annotations.json> \
6060
--output-dir <output_directory>
6161
```
@@ -74,31 +74,31 @@ python tools/download_osl_hf.py \
7474
Classification – svfouls
7575

7676
```bash
77-
python tools/download_osl_hf.py \
77+
python test_data/download_osl_hf.py \
7878
--url https://huggingface.co/datasets/OpenSportsLab/soccernetpro-classification-vars/blob/svfouls/annotations_test.json \
7979
--output-dir Test_Data/Classification/svfouls
8080
```
8181

8282
Classification – mvfouls
8383

8484
```bash
85-
python tools/download_osl_hf.py \
85+
python test_data/download_osl_hf.py \
8686
--url https://huggingface.co/datasets/OpenSportsLab/soccernetpro-classification-vars/blob/mvfouls/annotations_test.json \
8787
--output-dir Test_Data/Classification/mvfouls
8888
```
8989

9090
Localization – Action Spotting
9191

9292
```bash
93-
python tools/download_osl_hf.py \
93+
python test_data/download_osl_hf.py \
9494
--url https://huggingface.co/datasets/OpenSportsLab/soccernetpro-localization-snbas/blob/224p/annotations-test.json \
9595
--output-dir Test_Data/Localization
9696
```
9797

9898
**Dry Run Example:**
9999
Before downloading large video files, run the script in dry-run mode
100100
```bash
101-
python tools/download_osl_hf.py \
101+
python test_data/download_osl_hf.py \
102102
--url https://huggingface.co/datasets/OpenSportsLab/soccernetpro-classification-vars/blob/svfouls/annotations_test.json \
103103
--dry-run
104104
```

0 commit comments

Comments
 (0)