def denormalize_tmap(tmap):
    """denormalize tmap to the original scale.

    Args:
        tmap: Tensor of shape [h,w,2]. 

    Returns: denormalized tmap. The same shape as input.

    """
    return tmap * [5000, 500]