def weight_path_to_title(wp):
    """Get a title from a model's weight path

    Arguments:
        wp: path to model's weights.

    Returns:
        str: a reformatted string
    """
    return wp.split('/')[-1].replace('__', '-').split('.')[0]