import json


def get_patches_num_and_patch_idxs(patch_dict_json):
    """
    Load patch dict to get corresponding information, e.g. patches number, patch indices, mask path
    :param patch_dict_json: json file that stores information mentioned above
    :return: loaded dict
    """
    with open(patch_dict_json, "r") as f:
        loaded_dict = json.load(f)
    return loaded_dict