BVLC / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
34.06k stars 18.7k forks source link

Check failed: new_queue_pairs_.size() == 0 #3394

Open paraggoel14 opened 8 years ago

paraggoel14 commented 8 years ago

Hi,

I am running the ImageNet example from the website, and while running caffe, I run into this error after it reads in the mean file:

data_reader.cpp:98] Check failed: new_queuepairs.size() == 0 (1 vs. 0)

I am not sure what to make of this error. What can be the possible reason behind this?

seanbell commented 8 years ago

The documentation for the error might answer your question:

https://github.com/BVLC/caffe/blob/196b995efef4b644962e233ea421c4d586bb93ae/src/caffe/data_reader.cpp#L94-L98

etienne87 commented 8 years ago

Hi, i have the same error... my configuration is like this :

layer { name: "image0" type: "Data" top: "data" data_param { source: "dataXXX/image.lmdb" batch_size: 32 backend: LMDB } }

layer { name: "label0" type: "Data" top: "label" data_param { source: "dataXXX/label.lmdb" batch_size: 32 backend: LMDB } }

... rest is definition of the convnet...

What is the problem? should I specify include{phase: TRAIN} somewhere?

ultrai commented 8 years ago

Same error with similar data blob for image segmentation

karunaahuja commented 8 years ago

Same error. Any quick fix? It is very urgent.

lukeyeager commented 8 years ago

If your data layers look like @etienne87's above, then you need to mark one as your TRAIN data and another as your TEST data. Look at the reference networks for guidance:

https://github.com/BVLC/caffe/blob/rc3/models/bvlc_alexnet/train_val.prototxt#L7-L28 https://github.com/BVLC/caffe/blob/rc3/models/bvlc_googlenet/train_val.prototxt#L7-L30 https://github.com/BVLC/caffe/blob/rc3/examples/mnist/lenet_train_test.prototxt#L7-L26

layer {
  name: "training_data"
  type: "Data"
  top: "data"
  top: "label"
  include {
    phase: TRAIN
  }
  # ...
}
layer {
  name: "validation_data"
  type: "Data"
  top: "data"
  top: "label"
  include {
    phase: TEST
  }
  # ...
}