File size: 517 Bytes
178f61f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 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.")
|