data_process.py 文件源码

python
阅读 35 收藏 0 点赞 0 评论 0

项目:3D-R2N2 作者: chrischoy 项目源码 文件源码
def __init__(self, data_queue, data_paths, repeat=True):
        '''
        data_queue : Multiprocessing queue
        data_paths : list of data and label pair used to load data
        repeat : if set True, return data until exit is set
        '''
        super(DataProcess, self).__init__()
        # Queue to transfer the loaded mini batches
        self.data_queue = data_queue
        self.data_paths = data_paths
        self.num_data = len(data_paths)
        self.repeat = repeat

        # Tuple of data shape
        self.batch_size = cfg.CONST.BATCH_SIZE
        self.exit = Event()
        self.shuffle_db_inds()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号