2016-02-24 29 views
0

如果我尝试使用cifar10.py和cifar10_input.py在cifar10_train.py文件, 它给下面的错误:Tensorflow: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. 我改为 “从tensorflow.models.image.cifar10进口cifar10” 的 “进口cifar10” 和同为cifar10_input.py

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

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

回答

0

解决了这个问题。

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

相关问题