推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
lufficc
V2EX  ›  Python

TensorFlow 的 TFRecord 和 QueueRunner 简介

  •  1
     
  •   lufficc · Nov 1, 2017 · 3694 views
    This topic created in 3293 days ago, the information mentioned may be changed or developed.

    如何将数据集转换为 TensorFlow 的 TFRecord 格式呢?为什么要转换为 TFRecord 格式?如何使用文件队列?如何生成 Batches ?

    TensorFlow 的 TFRecord 和 QueueRunner 简介

    6 replies  •  2017-11-04 16:03:48 +08:00
    Boristype000
    Boristype000
    Nov 1, 2017
    1
    原来那个 tf.contrib.data 在 1.4 并入 tf 变成 tf.data 的数据预处理模块楼主用过吗?好多地方都推荐用这个
    inflationaaron
    inflationaaron
    Nov 2, 2017
    3
    这种 feed data 的方法虽然性能最好,但是很不灵活,想要在 epoch 间切换到另一个 dataset 需要用 tf.where 之类的图内条件切换。这也是 TensorFlow 静态图的缺点之一。
    lufficc
    lufficc
    OP
    Nov 2, 2017
    4
    @inflationaaron TensorFlow 动态图机制 Eager Execution,10.31 号出的,你怎么看?
    inflationaaron
    inflationaaron
    Nov 3, 2017
    5
    @luffylcc 挺好的啊,给 TensorFlow 使用者提供了另一种选择。当然我觉得对于动态图有需求的早就转到 PyTorch 了。
    zsneoks
    zsneoks
    Nov 4, 2017
    6
    我使用过,无非就是流化输入吧。有相应的 batch 接口啊,还可以 shuffle,可以参考源码里的 cifar10 的示例。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   686 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 20:41 · PVG 04:41 · LAX 12:41 · JFK 15:41
    ♥ Do have faith in what you're doing.