def torch_to_np(images):
    """Transforms the unnormalized output of a gan into a numpy array
    Args:
        images (torch.tensor): unnormalized output of a gan

    Returns:
        (numpy.array)
    """
    return ((images.clamp(min=-1, max=1) + 1) / 2).permute(0, 2, 3, 1).cpu().detach().numpy()