IsSynth-Cars / src /bootstrap_cars_data.py
DanielNguyen121's picture
Document and automate Molab Cars checkpoint recovery
a023253 verified
Raw History Blame Contribute Delete
568 Bytes
#!/usr/bin/env python3
"""Idempotent local data recovery for authorized Stanford Cars research use."""
from pathlib import Path
import subprocess,sys,shutil,os
SRC=Path(__file__).parent
BASE=Path('/marimo/IsSynth-Cars')
for name in ['restore_source_checkout.py','stage_cars_metadata.py','download_cars.sh','prepare_original.py','download_synthetic.py','validate_synthetic.py']:
command=['bash',str(SRC/name)] if name.endswith('.sh') else [sys.executable,str(SRC/name)]
subprocess.run(command,check=True,cwd=str(BASE))
print('CARS_LOCAL_DATA_READY',flush=True)