def tonumpy_batch(imgs):
    """
    Convert a batch of torch images to numpy image map

    :param imgs: (B, C, H, W)
    :return: (B, H, W, C)
    """
    
    return imgs.permute(0, 2, 3, 1).cpu().detach().numpy()