Now I use shadoworflow to write a program to test models. I am using FIFOQueue for an input queue. For example, I have 50,000 images and the number of 100 images at a time. The program works great, except for the final iteration. At the last iteration, it shows the error "E tensorflow / core / client / tensor_c_api.cc: 485] FIFOQueue '_0_path_queue' is closed and has insufficient elements (requested 1, current size 0) [[Node: path_queue_Dequeue = QueueDequeue_class = [" loc: @ path_queue "], component_types = [DT_INT32, DT_BOOL, DT_STRING], timeout_ms = -1, _device =" / job: localhost / replica: 0 / task: 0 / processor: 0 "]]"
I think this is because he is trying to insert 50,001 ~ 50,100 images, but cannot achieve this. However, I do not need to embed these images and not use them. How can I avoid this error?
Another question: if I would like to use dequeue_many (100), the total number of images is not divided by 100, say, 45678. In this case, the tensor stream gives an error. How can i solve this?
Thank.
denru source
share