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

Function md5_hash

vtp/utils/lpips.py:42–45  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

40
41
42def md5_hash(path):
43 with open(path, "rb") as f:
44 content = f.read()
45 return hashlib.md5(content).hexdigest()
46
47
48def get_ckpt_path(name, root=None, check=False):

Callers 1

get_ckpt_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected