【问题标题】:How are the multiple images being imported in cifar10_input.py如何在 cifar10_input.py 中导入多个图像
【发布时间】:2016-10-07 22:12:14
【问题描述】:

我现在正在阅读 tensorflow 的 cirfar10 教程(https://www.tensorflow.org/versions/r0.11/tutorials/deep_cnn/index.html) 并有一个问题: 似乎 cifar10_input.py 中的 read_cifar10(filename_queue) 函数每次只会读取一个图像。然而,在 distorted_inputs(data_dir, batch_size) 中,read_cifar10 只被调用一次(第 159 行)。

谁能指出代码在所有图像中读取的行?

谢谢!

【问题讨论】:

    标签: tensorflow


    【解决方案1】:

    批处理功能一次接收一张图像,然后在满足最小批处理大小后输出一个批处理。

    您可以在代码batch function 中看到它,也可以在此处查找批处理函数API batch API

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-12-31
      • 1970-01-01
      • 2021-03-03
      • 2021-05-25
      • 1970-01-01
      • 2017-09-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多