TensorFlow random_shuffle_queue is closed and has insufficient elements

后端 未结 6 1287
借酒劲吻你
借酒劲吻你 2020-12-15 05:00

I\'m reading batch of images by getting idea here from tfrecords(converted by this)

My images are cifar images, [32, 32, 3] and as you can see while reading and pas

6条回答
  •  庸人自扰
    2020-12-15 05:34

    To summarize the comments, the

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

    was caused by the queue running out of data. This is often caused by thinking you have enough data for N iterations when really you only have enough for M iterations where M < N.

    One suggestion for figuring out how much data you actually have is to count how many times you can read data before an OutOfRangeError exception is thrown by the queue.

提交回复
热议问题