zino36's picture
Upload 4 files
23f7322 verified
raw
history blame
464 Bytes
# Copyright (C) 2024-present Naver Corporation. All rights reserved.
# Licensed under CC BY-NC-SA 4.0 (non-commercial use only).
#
# --------------------------------------------------------
# utilitary functions for MASt3R
# --------------------------------------------------------
import os
import hashlib
def mkdir_for(f):
os.makedirs(os.path.dirname(f), exist_ok=True)
return f
def hash_md5(s):
return hashlib.md5(s.encode('utf-8')).hexdigest()