models icon indicating copy to clipboard operation
models copied to clipboard

FIFOQueue '_2_prefetch_queue' is closed and has insufficient elements (requested 1, current size 0)

Open lulu12132017 opened this issue 8 years ago • 7 comments

When I trained object dection.I got the following information, how could I solve this error.

OutOfRangeError (see above for traceback): FIFOQueue '_2_prefetch_queue' is closed and has insufficient elements (requested 1, current size 0)
	 [[Node: prefetch_queue_Dequeue = QueueDequeueV2[component_types=[DT_STRING, DT_INT32, DT_FLOAT, DT_INT32, DT_FLOAT, ..., DT_INT32, DT_INT32, DT_INT32, DT_STRING, DT_INT32], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](prefetch_queue)]]

Here is the command I use F:\TensorFlow\models\research\object_detection>python train.py --train_dir="F:/dataset/kitti/data_object" --pipeline_config_path="F:/dataset/kitti/data_object/faster_rcnn_resnet101_kitti_my.config"

tensorflow version:1.7.0

lulu12132017 avatar Apr 19 '18 04:04 lulu12132017

+1

AllenPeng0209 avatar Apr 23 '18 11:04 AllenPeng0209

@pkulzc Could you help on this? Feel free to add more people to the thread if it's helpful. Thanks!

yhliang2018 avatar Apr 23 '18 16:04 yhliang2018

I fixed this issue. Please check the configuration file.Pay attention to the input file name if you used following command to create records.

python object_detection/dataset_tools/create_kitti_tf_record.py \
        --data_dir=/home/user/kitti \
        --output_path=/home/user/kitti.record

Check input_path

input_path: "F:/dataset/kitti/data_object/kitti.record_train.tfrecord"
input_path: "F:/dataset/kitti/data_object/kitti.record_val.tfrecord"

lulu12132017 avatar Apr 25 '18 06:04 lulu12132017

Yeah looks like it's complaining about being unable to read input data. Great to see you already have this solved. Please close this issue if you don't have other questions. Thanks!

pkulzc avatar Apr 25 '18 06:04 pkulzc

I am so careless

lulu12132017 avatar Apr 26 '18 02:04 lulu12132017

Hi, I have the same issue while running open_pose training code on my own dataset. but my dataset is .mat file as depth image(grayscale). I load it with the scipy.io module in python. and repeat it on two other channels to convert 3 channels. but I receive this issue during training Can someone help me? thank you

soveidadelgarmi avatar Jul 13 '19 13:07 soveidadelgarmi

When I trained object dection.I got the following information, how could I solve this error.

OutOfRangeError (see above for traceback): FIFOQueue '_2_prefetch_queue' is closed and has insufficient elements (requested 1, current size 0)
	 [[Node: prefetch_queue_Dequeue = QueueDequeueV2[component_types=[DT_STRING, DT_INT32, DT_FLOAT, DT_INT32, DT_FLOAT, ..., DT_INT32, DT_INT32, DT_INT32, DT_STRING, DT_INT32], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](prefetch_queue)]]

Here is the command I use F:\TensorFlow\models\research\object_detection>python train.py --train_dir="F:/dataset/kitti/data_object" --pipeline_config_path="F:/dataset/kitti/data_object/faster_rcnn_resnet101_kitti_my.config"

tensorflow version:1.7.0

I changed the function for distributed training from tf.distribute.Server() to tf.train.Server() in the train.py file and it worked.

Anusmita-m avatar May 04 '20 16:05 Anusmita-m