def unfold_batch(batch_list):
    """
    Unfolds a list of batched masks into a list of individual masks
    :param batch_list: a list of batched masks
    :return: a list of individual masks
    """
    ret = []
    for batch in batch_list:
        for i in range(batch.shape[0]):
            ret.append(batch[i, ...])
    return ret