Home > other >  Tensorflow (CPU) to extract the image and lable stuck
Tensorflow (CPU) to extract the image and lable stuck

Time:09-17

Small white beginners tensorflow reference code on the net to do to his own image read, stuck in the threads=tf. Train. Start_queue_runners (coord=coord)

What is this? Have a great god can help me with?

If you delete coord=tf. "train". The Coordinator ()
Threads=tf. Train. Start_queue_runners (coord=coord)
The card in the img, label=sess. Run ([image_batch label_batch]) why is this?
Spyder has been run, there is no results, what is this?

CodePudding user response:

Hello, your problem solved, I also stuck in here now

CodePudding user response:

I met and is also a small white, you the same question, now solved, you can try the threads=tf. Train. Start_queue_runners (sess=sess, coord=coord)
If not, may own data storage problems, to store the image, first for formatting the picture processing,
Img=Image. Open (img_path)
Img=img. Resize ((28, 28), Image. The ANTIALIAS)
Img=img. Convert (' L ') # into grayscale
Img_raw=img. Tobytes ()
Then open the thread
Coord=tf. Train. The Coordinator ()
Threads=tf. Train. Start_queue_runners (sess=sess, coord=coord)
Should be ok
  • Related