from pathlib import Path
import json


def load_params(model_dir: Path) -> dict:
    """
    Load params from json

    Args:
        model_dir (Path): model directory path

    Returns:
        dict: dictionary of params
    """
    file_name = model_dir / 'params.json'
    with open(file_name, 'r') as f:
        params = json.load(f)
    return params