MCPcopy
hub / github.com/ultralytics/ultralytics / cache_solution_assets

Function cache_solution_assets

tests/cache_test_assets.py:77–86  ·  view source on GitHub ↗

Download solution test assets (videos, parking json, etc.).

()

Source from the content-addressed store, hash-verified

75
76
77def 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
89def cache_clip_model() -> None:

Callers 1

mainFunction · 0.85

Calls 2

safe_downloadFunction · 0.90
infoMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…