import torch


def normalize_points(points: torch.Tensor, h: int, w: int) -> torch.Tensor:
    """ Normalize coordinates to [0, 1].
    """
    return (points + 0.5) / torch.tensor([[[w, h]]]).to(points)