Download solution test assets (videos, parking json, etc.).
()
| 75 | |
| 76 | |
| 77 | def cache_solution_assets() -> None: |
| 78 | """Download solution test assets (videos, parking json, etc.).""" |
| 79 | LOGGER.info("[cache] Downloading solution assets ...") |
| 80 | cache_dir = WEIGHTS_DIR / "solution_assets" |
| 81 | cache_dir.mkdir(parents=True, exist_ok=True) |
| 82 | for asset in SOLUTION_ASSETS.values(): |
| 83 | dst = cache_dir / asset |
| 84 | if not dst.exists(): |
| 85 | safe_download(url=f"{ASSETS_URL}/{asset}", dir=cache_dir) |
| 86 | LOGGER.info("[cache] Solution assets done.") |
| 87 | |
| 88 | |
| 89 | def cache_clip_model() -> None: |
no test coverage detected
searching dependent graphs…