相关疑难解决方法(0)

TensorFlow random_shuffle_queue已关闭且元素不足

我通过获取想法阅读一批图像这里从tfrecords(通过转换)

我的图像是cifar图像,[32,32,3],你可以看到,在阅读和传递图像时,形状是正常的(batch_size=100)

据我所知,日志中陈述的两个最值得注意的问题是

  1. 形状12228,我不知道从哪里得到这个.我的所有张量都是形状[32,32,3]或[无,3072]
  2. 用完了样品

Compute status: Out of range: RandomSuffleQueue '_2_input/shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 100, current size 0)

我怎么解决这个问题?

日志:

1- image shape is  TensorShape([Dimension(3072)])
1.1- images batch shape is  TensorShape([Dimension(100), Dimension(3072)])
2- images shape is  TensorShape([Dimension(100), Dimension(3072)])

W tensorflow/core/kernels/queue_ops.cc:79] Invalid argument: Shape mismatch in tuple component 0. Expected [3072], got [12288]
W tensorflow/core/common_runtime/executor.cc:1027] 0x7fa72abc89a0 Compute status: Invalid argument: Shape mismatch in tuple component 0. Expected [3072], got [12288] …
Run Code Online (Sandbox Code Playgroud)

python tensorflow

21
推荐指数
3
解决办法
2万
查看次数

标签 统计

python ×1

tensorflow ×1