def pixel_accuracy(pred, gt):
    """Computes the pixel accuracy between the prediction and the ground truth masks
    """
    correct_pred_count = (pred == gt).sum()
    total_pixels = gt.shape[0] * gt.shape[1]

    return correct_pred_count / total_pixels