
from pathlib import Path
from huggingface_hub import hf_hub_download
root=Path(__file__).resolve().parent.parent/"models"; root.mkdir(exist_ok=True)
items=[
("opencv/face_detection_yunet","face_detection_yunet_2023mar.onnx"),
("opencv/face_recognition_sface","face_recognition_sface_2021dec.onnx"),
]
for repo,fn in items:
    p=hf_hub_download(repo_id=repo,filename=fn,local_dir=str(root))
    print("Downloaded",p)
