def ignore_gt(gt_anno, index, difficulty):
    """
    Indicates whether to ignore GT sample
    Args:
        gt_anno [dict]: Ground truth annotation
        index [int]: GT sample index
        difficulty [int]: Difficulty index
    Returns
        ignore [bool]: Ignore flag
    """
    # Compute ignore
    ignore = False
    if (gt_anno["difficulty"][index] == 0):
        ignore = True
    elif (gt_anno["difficulty"][index] > difficulty):
        ignore = True
    return ignore