这个错误 服了
错误原因:
tensorflow.python.framework.errors_impl.OutOfRangeError: FIFOQueue '_2_batch/fifo_queue' is closed and has insufficient elements (requested 2800, current size 0)
[[{{node batch}} = QueueDequeueManyV2[component_types=[DT_UINT8], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](batch/fifo_queue, batch/n)]]
OutOfRangeError (see above for traceback): FIFOQueue '_2_batch/fifo_queue' is closed and has insufficient elements (requested 2800, current size 0)
[[{{node batch}} = QueueDequeueManyV2[component_types=[DT_UINT8], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](batch/fifo_queue, batch/n)]]
一脸懵B 什么错误!
原因:
我要解码图片gif类型的
tf.image.xxx 出现decode_gif 自然加上
.decode_gif(value) 发现一直报错
最后 切换jepg 发现成功解决= =
.decode_jpeg(value)
本文记录了一次在使用TensorFlow进行图片解码时遇到的OutOfRangeError错误,详细描述了错误信息及排查过程,最终发现是由于解码GIF图片导致的问题,并通过切换到JPEG格式成功解决了该错误。

228

被折叠的 条评论
为什么被折叠?



