Delete scripts/avespeech.py
Browse files- scripts/avespeech.py +0 -37
scripts/avespeech.py
DELETED
|
@@ -1,37 +0,0 @@
|
|
| 1 |
-
import argparse
|
| 2 |
-
import os
|
| 3 |
-
from huggingface_hub import snapshot_download
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
def download_emg_only(save_dir: str):
|
| 7 |
-
"""
|
| 8 |
-
Download only EMG folders from the AVE-Speech dataset.
|
| 9 |
-
Requires HF authentication if the dataset is gated.
|
| 10 |
-
"""
|
| 11 |
-
|
| 12 |
-
repo_id = "MML-Group/AVE-Speech"
|
| 13 |
-
|
| 14 |
-
# Patterns to include only EMG folders across splits
|
| 15 |
-
allow_patterns = [
|
| 16 |
-
"Train/EMG/**",
|
| 17 |
-
"Dev/EMG/**",
|
| 18 |
-
"Test/EMG/**",
|
| 19 |
-
]
|
| 20 |
-
|
| 21 |
-
snapshot_download(
|
| 22 |
-
repo_id=repo_id,
|
| 23 |
-
repo_type="dataset",
|
| 24 |
-
local_dir=save_dir,
|
| 25 |
-
allow_patterns=allow_patterns,
|
| 26 |
-
resume_download=True,
|
| 27 |
-
)
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
if __name__ == "__main__":
|
| 31 |
-
parser = argparse.ArgumentParser(description="Download AVE-Speech EMG data only")
|
| 32 |
-
parser.add_argument("--save_dir", type=str, required=True)
|
| 33 |
-
args = parser.parse_args()
|
| 34 |
-
|
| 35 |
-
os.makedirs(args.save_dir, exist_ok=True)
|
| 36 |
-
|
| 37 |
-
download_emg_only(args.save_dir)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|