Download src/data/batch_generate_labels.py from thanhhuyvan/Gaze-LIPE: direct link, hf CLI and curl.
- Browser
- Download file 517 Bytes
-
https://huggingface.co/thanhhuyvan/Gaze-LIPE/resolve/main/src/data/batch_generate_labels.py
- Command line
-
hf download hf://thanhhuyvan/Gaze-LIPE/src/data/batch_generate_labels.py
-
curl -L -o batch_generate_labels.py https://huggingface.co/thanhhuyvan/Gaze-LIPE/resolve/main/src/data/batch_generate_labels.py
517 Bytes
| import os | |
| import subprocess | |
| import sys | |
| participants = [f"p{i:02d}" for i in range(1, 15)] | |
| processed_dir = 'data/processed' | |
| for p in participants: | |
| h5_path = os.path.join(processed_dir, f"{p}.h5") | |
| if os.path.exists(h5_path): | |
| print(f"Starting {p}...") | |
| # Run sequentially to avoid overloading CPU, but this script can be run in background | |
| subprocess.run([sys.executable, "src/data/generate_teacher_labels.py", "--participant", p]) | |
| else: | |
| print(f"Skipping {p}, H5 not found.") | |