def decode_landmarks(anchors, deltas):
    """Apply the landmark delta predictions on the base anchor coordinates.

    Paramters
    ---------
    anchors : torch.Tensor of shape (A, 4)
    deltas : torch.Tensor of shape (N, A, 5, 2)

    Returns
    -------
    torch.Tensor of shape (N, A, 5, 2)
        Adjusted landmark coordinates.

    """
    widths = anchors[:, (2)] - anchors[:, (0)] + 1.0
    heights = anchors[:, (3)] - anchors[:, (1)] + 1.0
    ctr_x = anchors[:, (0)] + 0.5 * (widths - 1.0)
    ctr_y = anchors[:, (1)] + 0.5 * (heights - 1.0)
    pred = deltas
    for i in range(5):
        pred[..., i, 0] = deltas[..., i, 0] * widths + ctr_x
        pred[..., i, 1] = deltas[..., i, 1] * heights + ctr_y
    return pred
