MCPcopy Create free account
hub / github.com/MiniMax-AI/VTP / get_cache_dir

Function get_cache_dir

vtp/utils/lpips.py:20–27  ·  view source on GitHub ↗

Get cache directory for LPIPS weights.

()

Source from the content-addressed store, hash-verified

18
19
20def get_cache_dir():
21 """Get cache directory for LPIPS weights."""
22 # Get project root (vtp_1214 directory)
23 current_file = os.path.abspath(__file__)
24 project_root = os.path.dirname(os.path.dirname(os.path.dirname(current_file)))
25 cache_dir = os.path.join(project_root, "output", "cache", "lpips")
26 os.makedirs(cache_dir, exist_ok=True)
27 return cache_dir
28
29
30def download(url, local_path, chunk_size=1024):

Callers 1

get_ckpt_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected