0

Using TensorFlow image reading & display

I ran the above code which works correctly on the first run.
I have only one jpg file < 1MB.
Subsequent runs just hang; any idea or input?

Community
  • 1
  • 1
Integration
  • 337
  • 1
  • 4
  • 15
  • When you are using queues, the read will hang at the end until more stuff is pushed onto the queue or the queue is closed...so perhaps reader.read is not closing the queue and waiting? – Yaroslav Bulatov Jan 25 '16 at 06:16
  • Can you share the exact code that you ran? The most likely reason for a hang is the absence of [`tf.train.start_queue_runners()`](https://www.tensorflow.org/versions/0.6.0/api_docs/python/train.html#start_queue_runners). – mrry Jan 25 '16 at 15:41

0 Answers0