MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / md5_hash

Function md5_hash

sat/sgm/modules/autoencoding/lpips/util.py:28–31  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

26
27
28def md5_hash(path):
29 with open(path, "rb") as f:
30 content = f.read()
31 return hashlib.md5(content).hexdigest()
32
33
34def get_ckpt_path(name, root, check=False):

Callers 1

get_ckpt_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected