dataset.py 文件源码

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

项目:taskcv-2017-public 作者: VisionLearningGroup 项目源码 文件源码
def tf_ops(self, capacity=32):
        images = ops.convert_to_tensor(self._image_fn_list, dtype=dtypes.string)
        labels = ops.convert_to_tensor(self._label_list, dtype=dtypes.int32)

        # Makes an input queue
        im_fn_q, labl_q = tf.train.slice_input_producer(
            [images, labels], capacity=capacity, shuffle=True)

        file_contents_q = tf.read_file(im_fn_q)
        im_q = self._decoder(file_contents_q, channels=3)

        return im_q, labl_q
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号