Download src/bootstrap_cars_data.py from DanielNguyen121/IsSynth-Cars: direct link, hf CLI and curl.
- Browser
- Download file 568 Bytes
-
https://huggingface.co/DanielNguyen121/IsSynth-Cars/resolve/main/src/bootstrap_cars_data.py
- Command line
-
hf download hf://DanielNguyen121/IsSynth-Cars/src/bootstrap_cars_data.py
-
curl -L -o bootstrap_cars_data.py https://huggingface.co/DanielNguyen121/IsSynth-Cars/resolve/main/src/bootstrap_cars_data.py
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) | |