FallKLTN / src /fall_detection /config.py
minhy112's picture
Upload fall detection code, trained models, and repeated experiments
9313a90 verified
Raw History Blame Contribute Delete
288 Bytes
from __future__ import annotations
from pathlib import Path
from typing import Any
import yaml
def load_config(path: str | Path) -> dict[str, Any]:
"""Load a YAML configuration file."""
with Path(path).open("r", encoding="utf-8") as file:
return yaml.safe_load(file)