Tensorflow:cifar10.py 或 cifar10_input.py 不起作用
Tensorflow: cifar10.py or cifar10_input.py does not work
如果我尝试在 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->
然后终端挂起...
我只改变了两件事:
我用 "import cifar10" 替换了 "from tensorflow.models.image.cifar10 import cifar10" 并且 cifar10_input.py
也一样
设置max_steps为5000,检查代码是否运行无误。
如有任何帮助,我们将不胜感激。谢谢
问题解决了。
应该至少有2个输入(.bin)文件。我之前尝试过一个文件。例如。应该有 data_batch_1.bin 和 data_batch_2.bin。我之前用 data_batch_1.bin 试过。
如果我尝试在 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->
然后终端挂起...
我只改变了两件事:
我用 "import cifar10" 替换了 "from tensorflow.models.image.cifar10 import cifar10" 并且 cifar10_input.py
也一样
设置max_steps为5000,检查代码是否运行无误。
如有任何帮助,我们将不胜感激。谢谢
问题解决了。
应该至少有2个输入(.bin)文件。我之前尝试过一个文件。例如。应该有 data_batch_1.bin 和 data_batch_2.bin。我之前用 data_batch_1.bin 试过。