【问题标题】:Tensorflow: cifar10.py or cifar10_input.py does not workTensorflow:cifar10.py 或 cifar10_input.py 不起作用
【发布时间】:2016-02-24 23:00:42
【问题描述】:

如果我尝试在 cifar10_train.py 文件中使用 cifar10.py 和 cifar10_input.py, 它给出以下错误:

Filling queue with 20000 CIFAR images before starting to train. This will take a few minutes.

I tensorflow/core/common_runtime/local_device.cc:25] Local device intra op parallelism threads: 4

I tensorflow/core/common_runtime/local_session.cc:45] Local session inter op parallelism threads: 4

W tensorflow/core/kernels/queue_ops.cc:114] Invalid argument: Signature mismatch, have: string_ref, float-> expected: string_ref, string->

然后终端挂起...

我只改变了两件事:

  1. 我将“from tensorflow.models.image.cifar10 import cifar10”替换为“import cifar10”,对于 cifar10_input.py 也是如此

  2. 将 max_steps 设置为 5000,以检查代码是否运行无误。

任何帮助将不胜感激。谢谢

【问题讨论】:

    标签: tensorflow


    【解决方案1】:

    解决了这个问题。

    至少应有 2 个输入 (.bin) 文件。我之前尝试过使用一个文件。例如。应该有data_batch_1.bin和data_batch_2.bin。我之前用 data_batch_1.bin 试过。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-10-02
      • 2017-07-29
      • 1970-01-01
      • 2016-03-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多